remove InstallableValueCommand class

Change-Id: Id12383f4741cba07159712700ebcfbe37e61560c
This commit is contained in:
Qyriad 2024-06-17 14:45:10 -06:00
parent 6515b1a495
commit e44dcd63c4
4 changed files with 1 additions and 37 deletions

View file

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

View file

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

View file

@ -1,6 +1,5 @@
libcmd_sources = files( libcmd_sources = files(
'built-path.cc', 'built-path.cc',
'command-installable-value.cc',
'cmd-profiles.cc', 'cmd-profiles.cc',
'command.cc', 'command.cc',
'common-eval-args.cc', 'common-eval-args.cc',
@ -18,7 +17,6 @@ libcmd_sources = files(
libcmd_headers = files( libcmd_headers = files(
'built-path.hh', 'built-path.hh',
'command-installable-value.hh',
'cmd-profiles.hh', 'cmd-profiles.hh',
'command.hh', 'command.hh',
'common-eval-args.hh', 'common-eval-args.hh',

View file

@ -1,6 +1,6 @@
#include "eval.hh" #include "eval.hh"
#include "installable-flake.hh" #include "installable-flake.hh"
#include "command-installable-value.hh" #include "command.hh"
#include "common-args.hh" #include "common-args.hh"
#include "shared.hh" #include "shared.hh"
#include "store-api.hh" #include "store-api.hh"