InstallableExpr unused

This commit is contained in:
Matthew Kenigsberg 2020-05-09 10:14:57 -06:00
parent 14a3a62bfc
commit bf81dd40e9

View file

@ -237,23 +237,6 @@ Buildables InstallableValue::toBuildables()
return res; 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 struct InstallableAttrPath : InstallableValue
{ {
RootValue v; RootValue v;