diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-29 19:08:37 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-06-29 19:08:37 +0200 |
commit | 50f13b06fb1b2f50a97323c000d1094d090f08ea (patch) | |
tree | 6b99e97ffc6bac40f67d1e83cec8e5eef68cc4a1 /src/libexpr/primops.cc | |
parent | b681408879c9ad1e500fa6e4566c6d119def4271 (diff) |
EvalCache: Store string contexts
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 3830d8107..96c20b227 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -30,18 +30,6 @@ namespace nix { *************************************************************/ -/* Decode a context string ‘!<name>!<path>’ into a pair <path, - name>. */ -std::pair<string, string> decodeContext(const string & s) -{ - if (s.at(0) == '!') { - size_t index = s.find("!", 1); - return std::pair<string, string>(string(s, index + 1), string(s, 1, index - 1)); - } else - return std::pair<string, string>(s.at(0) == '/' ? s : string(s, 1), ""); -} - - InvalidPathError::InvalidPathError(const Path & path) : EvalError("path '%s' is not valid", path), path(path) {} |