From afc11065bb151349090d8ae89cb61d1c35bdddae Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 28 Oct 2024 23:49:50 -0500 Subject: Prepare for new SSO. --- include/fud_c_file.hpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include/fud_c_file.hpp') 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(*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; -- cgit v1.2.3