[SERVER-61527] Delete dead makeGuard function Created: 16/Nov/21  Updated: 29/Oct/23  Resolved: 19/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Task Priority: Trivial - P5
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2021-11-29
Participants:

 Description   

The following declaration isn't used anywhere:

/** Obsolete: `ScopeGuard<F>` can deduce the `F` type. */
template <typename F>
auto makeGuard(F&& fun) {
    return ScopeGuard<std::decay_t<F>>(std::forward<F>(fun));
}



 Comments   
Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-61527 Delete unused makeGuard function
Branch: master
https://github.com/mongodb/mongo/commit/454267ae9fd2cbfe1f470687072f7f3c6f394821

Generated at Thu Feb 08 05:52:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.