mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
nix: Remove unused function.
* nix/libutil/util.hh: * nix/libutil/util.cc (decodeOctalEscaped): Remove unused and buggy function.
This commit is contained in:
parent
842e0e439a
commit
ed464f48ef
2 changed files with 0 additions and 21 deletions
|
@ -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()
|
void ignoreException()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -356,12 +356,6 @@ string parseString(std::istream & str);
|
||||||
bool endOfList(std::istream & str);
|
bool endOfList(std::istream & str);
|
||||||
|
|
||||||
|
|
||||||
/* Escape a string that contains octal-encoded escape codes such as
|
|
||||||
used in /etc/fstab and /proc/mounts (e.g. "foo\040bar" decodes to
|
|
||||||
"foo bar"). */
|
|
||||||
string decodeOctalEscaped(const string & s);
|
|
||||||
|
|
||||||
|
|
||||||
/* Exception handling in destructors: print an error message, then
|
/* Exception handling in destructors: print an error message, then
|
||||||
ignore the exception. */
|
ignore the exception. */
|
||||||
void ignoreException();
|
void ignoreException();
|
||||||
|
|
Loading…
Reference in a new issue