diff --git a/src/lib/io/CMakeLists.txt b/src/lib/io/CMakeLists.txt index 223bb34d0..a46782db1 100644 --- a/src/lib/io/CMakeLists.txt +++ b/src/lib/io/CMakeLists.txt @@ -4,8 +4,6 @@ # SPDX-License-Identifier: MIT add_library(io STATIC - Filesystem.cpp - Filesystem.h IOException.cpp IOException.h IStream.h diff --git a/src/lib/io/Filesystem.cpp b/src/lib/io/Filesystem.cpp deleted file mode 100644 index 96beea197..000000000 --- a/src/lib/io/Filesystem.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Deskflow -- mouse and keyboard sharing utility - * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers - * SPDX-FileCopyrightText: (C) 2021 Barrier Contributors - * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception - */ - -#include "Filesystem.h" - -namespace deskflow { - -std::FILE *fopenUtf8Path(const fs::path &path, const std::string &mode) -{ -#if SYSAPI_WIN32 - std::wstring wpath = path.native(); - std::wstring wmode(mode.begin(), mode.end()); - - return _wfopen(wpath.c_str(), wmode.c_str()); -#else - return std::fopen(path.native().c_str(), mode.c_str()); -#endif -} - -} // namespace deskflow diff --git a/src/lib/io/Filesystem.h b/src/lib/io/Filesystem.h deleted file mode 100644 index 502562eec..000000000 --- a/src/lib/io/Filesystem.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Deskflow -- mouse and keyboard sharing utility - * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers - * SPDX-FileCopyrightText: (C) 2021 Barrier Contributors - * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception - */ - -#pragma once - -#include -#include - -namespace deskflow { - -namespace fs = std::filesystem; - -std::FILE *fopenUtf8Path(const fs::path &path, const std::string &mode); - -} // namespace deskflow