Commit f4bb18b0 authored by Max Kellermann's avatar Max Kellermann

fs/AllocatedPath: remove the obsolete class Error overload

parent 14885f25
......@@ -21,7 +21,6 @@
#include "AllocatedPath.hxx"
#include "Domain.hxx"
#include "Charset.hxx"
#include "util/Error.hxx"
#include "Compiler.h"
#include <stdexcept>
......@@ -54,18 +53,6 @@ AllocatedPath::FromUTF8Throw(const char *path_utf8)
}
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
{
return FromFS(PathTraitsFS::GetParent(c_str()));
......
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment