fs/AllocatedPath: remove the obsolete class Error overload
This commit is contained in:
parent
14885f25b4
commit
f4bb18b05e
@ -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
|
||||
{
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user