1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Remove non-method mkString()

This commit is contained in:
Eelco Dolstra 2022-01-04 18:24:42 +01:00
parent 6d9a6d2cc3
commit cc08364315
11 changed files with 44 additions and 66 deletions

View file

@ -766,25 +766,12 @@ LocalNoInline(void addErrorTrace(Error & e, const Pos & pos, const char * s, con
}
void mkString(Value & v, const char * s)
{
v.mkString(dupString(s));
}
void Value::mkString(std::string_view s)
{
mkString(dupStringWithLen(s.data(), s.size()));
}
Value & mkString(Value & v, std::string_view s, const PathSet & context)
{
v.mkString(s, context);
return v;
}
void Value::mkString(std::string_view s, const PathSet & context)
{
mkString(s);