forked from lix-project/lix
InstallableExpr unused
This commit is contained in:
parent
14a3a62bfc
commit
bf81dd40e9
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue