diff options
Diffstat (limited to 'third_party/nix/src/nix/legacy.hh')
-rw-r--r-- | third_party/nix/src/nix/legacy.hh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/third_party/nix/src/nix/legacy.hh b/third_party/nix/src/nix/legacy.hh deleted file mode 100644 index a0fc88da244c..000000000000 --- a/third_party/nix/src/nix/legacy.hh +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include <functional> -#include <map> -#include <string> - -namespace nix { - -typedef std::function<void(int, char**)> MainFunction; - -struct RegisterLegacyCommand { - using Commands = std::map<std::string, MainFunction>; - static Commands* commands; - - RegisterLegacyCommand(const std::string& name, MainFunction fun) { - if (!commands) { - commands = new Commands; - } - (*commands)[name] = fun; - } -}; - -} // namespace nix |