Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61527

Delete dead makeGuard function

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2021-11-29

    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));
      }
      

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: