mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
InstallableExpr unused
This commit is contained in:
parent
14a3a62bfc
commit
bf81dd40e9
1 changed files with 0 additions and 17 deletions
|
@ -237,23 +237,6 @@ Buildables InstallableValue::toBuildables()
|
|||
return res;
|
||||
}
|
||||
|
||||
struct InstallableExpr : InstallableValue
|
||||
{
|
||||
std::string text;
|
||||
|
||||
InstallableExpr(SourceExprCommand & cmd, const std::string & text)
|
||||
: InstallableValue(cmd), text(text) { }
|
||||
|
||||
std::string what() override { return text; }
|
||||
|
||||
std::pair<Value *, Pos> toValue(EvalState & state) override
|
||||
{
|
||||
auto v = state.allocValue();
|
||||
state.eval(state.parseExprFromString(text, absPath(".")), *v);
|
||||
return {v, noPos};
|
||||
}
|
||||
};
|
||||
|
||||
struct InstallableAttrPath : InstallableValue
|
||||
{
|
||||
RootValue v;
|
||||
|
|
Loading…
Reference in a new issue