diff options
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/command-installable-value.cc | 11 | ||||
-rw-r--r-- | src/libcmd/command-installable-value.hh | 23 | ||||
-rw-r--r-- | src/libcmd/meson.build | 2 |
3 files changed, 0 insertions, 36 deletions
diff --git a/src/libcmd/command-installable-value.cc b/src/libcmd/command-installable-value.cc deleted file mode 100644 index 7e0c15eb8..000000000 --- a/src/libcmd/command-installable-value.cc +++ /dev/null @@ -1,11 +0,0 @@ -#include "command-installable-value.hh" - -namespace nix { - -void InstallableValueCommand::run(ref<Store> store, ref<Installable> installable) -{ - auto installableValue = InstallableValue::require(installable); - run(store, installableValue); -} - -} diff --git a/src/libcmd/command-installable-value.hh b/src/libcmd/command-installable-value.hh deleted file mode 100644 index 7880d4119..000000000 --- a/src/libcmd/command-installable-value.hh +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once -///@file - -#include "installable-value.hh" -#include "command.hh" - -namespace nix { - -/** - * An InstallableCommand where the single positional argument must be an - * InstallableValue in particular. - */ -struct InstallableValueCommand : InstallableCommand -{ - /** - * Entry point to this command - */ - virtual void run(ref<Store> store, ref<InstallableValue> installable) = 0; - - void run(ref<Store> store, ref<Installable> installable) override; -}; - -} diff --git a/src/libcmd/meson.build b/src/libcmd/meson.build index 3d92f36a4..73deb035c 100644 --- a/src/libcmd/meson.build +++ b/src/libcmd/meson.build @@ -1,6 +1,5 @@ libcmd_sources = files( 'built-path.cc', - 'command-installable-value.cc', 'cmd-profiles.cc', 'command.cc', 'common-eval-args.cc', @@ -18,7 +17,6 @@ libcmd_sources = files( libcmd_headers = files( 'built-path.hh', - 'command-installable-value.hh', 'cmd-profiles.hh', 'command.hh', 'common-eval-args.hh', |