diff options
author | Andy Wingo <wingo@igalia.com> | 2017-08-18T09·07+0200 |
---|---|---|
committer | Andy Wingo <wingo@igalia.com> | 2017-08-18T09·07+0200 |
commit | 6bb4e3e8fe30a09d174a04295ba074ee006ebb4f (patch) | |
tree | c0a7797bba12e237ed5643c066fe50b51b357872 /src/libutil/util.hh | |
parent | e2f9a61dc95f8f0ee51995ad88f4c5d5bd0e7740 (diff) |
Remove unused decodeOctalEscaped
Besides being unused, this function has a bug that it will incorrectly decode the path component Ubuntu\04016.04.2\040LTS\040amd64 as "Ubuntu.04.2 LTS amd64" instead of "Ubuntu 16.04.2 LTS amd64".
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 35909c8d5b31..7340ca6c7478 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -349,12 +349,6 @@ bool hasSuffix(const string & s, const string & suffix); std::string toLower(const std::string & s); -/* 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 ignore the exception. */ void ignoreException(); |