diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-28 23:49:50 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-28 23:49:50 -0500 |
commit | afc11065bb151349090d8ae89cb61d1c35bdddae (patch) | |
tree | 41a7133a6e143d6333594d899556831b5a914fc1 /source/fud_c_file.cpp | |
parent | c3cf6df863828798ed8230b0f0966bcf3b2d08dd (diff) |
Prepare for new SSO.
Diffstat (limited to 'source/fud_c_file.cpp')
-rw-r--r-- | source/fud_c_file.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/fud_c_file.cpp b/source/fud_c_file.cpp index 9fc7734..bd90af7 100644 --- a/source/fud_c_file.cpp +++ b/source/fud_c_file.cpp @@ -21,9 +21,6 @@ namespace fud { CBinaryFileResult CBinaryFile::make(const String& filename, CFileMode mode) { - if (!filename.valid()) { - return CBinaryFileResult::error(FudStatus::ArgumentInvalid); - } auto modeResult{String::makeFromCString(CBinaryFileModeFromFlags(mode))}; if (modeResult.isError()) { return CBinaryFileResult::error(modeResult); @@ -41,9 +38,6 @@ CBinaryFileResult CBinaryFile::make(const String& filename, CFileMode mode) CBinaryFileResult CBinaryFile::make(const String& filename, CFileMode mode, const char* extraFlags) { - if (!filename.valid()) { - return CBinaryFileResult::error(FudStatus::ArgumentInvalid); - } auto modeResult{String::makeFromCStrings(CBinaryFileModeFromFlags(mode), extraFlags)}; if (modeResult.isError()) { return CBinaryFileResult::error(modeResult); @@ -89,9 +83,6 @@ CBinaryFile& CBinaryFile::operator=(CBinaryFile&& rhs) noexcept CTextFileResult CTextFile::make(const String& filename, CFileMode mode) { - if (!filename.valid()) { - return CTextFileResult::error(FudStatus::ArgumentInvalid); - } auto modeResult{String::makeFromCString(CBinaryFileModeFromFlags(mode))}; if (modeResult.isError()) { return CTextFileResult::error(modeResult); @@ -109,9 +100,6 @@ CTextFileResult CTextFile::make(const String& filename, CFileMode mode) CTextFileResult CTextFile::make(const String& filename, CFileMode mode, const char* extraFlags) { - if (!filename.valid()) { - return CTextFileResult::error(FudStatus::ArgumentInvalid); - } auto modeResult{String::makeFromCStrings(CTextFileModeFromFlags(mode), extraFlags)}; if (modeResult.isError()) { return CTextFileResult::error(modeResult); |