summaryrefslogtreecommitdiff
path: root/include/fud_c_file.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_c_file.hpp')
-rw-r--r--include/fud_c_file.hpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/fud_c_file.hpp b/include/fud_c_file.hpp
index 197abd3..bf148c2 100644
--- a/include/fud_c_file.hpp
+++ b/include/fud_c_file.hpp
@@ -97,9 +97,6 @@ class CFile {
FudStatus open()
{
auto& self = static_cast<Derived&>(*this);
- if (!self.m_filename.valid()) {
- return FudStatus::ObjectInvalid;
- }
self.m_file = fopen(self.m_filename.c_str(), self.m_mode.c_str());
return self.m_file != nullptr ? FudStatus::Success : FudStatus::Failure;
}
@@ -111,10 +108,6 @@ class CFile {
return FudStatus::OperationInvalid;
}
- if (!self.m_filename.valid()) {
- return FudStatus::ObjectInvalid;
- }
-
auto fdResult = ::open(self.m_filename.c_str(), O_CREAT, permissions.mode());
if (fdResult == -1) {
return FudStatus::Failure;