fs/AllocatedPath: remove the obsolete class Error overload

This commit is contained in:
Max Kellermann 2016-11-10 12:49:23 +01:00
parent 14885f25b4
commit f4bb18b05e
2 changed files with 0 additions and 18 deletions

View File

@ -21,7 +21,6 @@
#include "AllocatedPath.hxx"
#include "Domain.hxx"
#include "Charset.hxx"
#include "util/Error.hxx"
#include "Compiler.h"
#include <stdexcept>
@ -53,18 +52,6 @@ AllocatedPath::FromUTF8Throw(const char *path_utf8)
#endif
}
AllocatedPath
AllocatedPath::FromUTF8(const char *path_utf8, Error &error)
{
AllocatedPath path = FromUTF8(path_utf8);
if (path.IsNull())
error.Format(path_domain,
"Failed to convert to file system charset: %s",
path_utf8);
return path;
}
AllocatedPath
AllocatedPath::GetDirectoryName() const
{

View File

@ -29,8 +29,6 @@
#include <utility>
#include <string>
class Error;
/**
* A path name in the native file system character set.
*
@ -164,9 +162,6 @@ public:
gcc_pure gcc_nonnull_all
static AllocatedPath FromUTF8Throw(const char *path_utf8);
gcc_pure gcc_nonnull_all
static AllocatedPath FromUTF8(const char *path_utf8, Error &error);
/**
* Copy an #AllocatedPath object.
*/