Skip to content

Commit

Permalink
Add note that the static mk* function should be removed eventually
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Dec 18, 2020
1 parent 3151882 commit a7cfcd8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/libexpr/value.hh
Original file line number Diff line number Diff line change
Expand Up @@ -351,25 +351,22 @@ public:




// TODO: Remove these static functions, replace call sites with v.mk* instead
static inline void mkInt(Value & v, NixInt n)
{
v.mkInt(n);
}


static inline void mkFloat(Value & v, NixFloat n)
{
v.mkFloat(n);
}


static inline void mkBool(Value & v, bool b)
{
v.mkBool(b);
}


static inline void mkNull(Value & v)
{
v.mkNull();
Expand All @@ -380,9 +377,6 @@ static inline void mkApp(Value & v, Value & left, Value & right)
v.mkApp(&left, &right);
}




static inline void mkString(Value & v, const Symbol & s)
{
v.mkString(((const string &) s).c_str());
Expand Down

0 comments on commit a7cfcd8

Please sign in to comment.