mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-28 03:51:53 +02:00
nix: Remove unused function.
* nix/libutil/util.hh: * nix/libutil/util.cc (decodeOctalEscaped): Remove unused and buggy function.
This commit is contained in:
@@ -1106,21 +1106,6 @@ bool endOfList(std::istream & str)
|
||||
}
|
||||
|
||||
|
||||
string decodeOctalEscaped(const string & s)
|
||||
{
|
||||
string r;
|
||||
for (string::const_iterator i = s.begin(); i != s.end(); ) {
|
||||
if (*i != '\\') { r += *i++; continue; }
|
||||
unsigned char c = 0;
|
||||
++i;
|
||||
while (i != s.end() && *i >= '0' && *i < '8')
|
||||
c = c * 8 + (*i++ - '0');
|
||||
r += c;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
void ignoreException()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user