chore: remove unused io/Filesystem

This commit is contained in:
sithlord48
2025-12-05 16:45:28 -05:00
committed by Nick Bolton
parent 27579e4fae
commit 13750f4175
3 changed files with 0 additions and 45 deletions

View File

@ -4,8 +4,6 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
add_library(io STATIC add_library(io STATIC
Filesystem.cpp
Filesystem.h
IOException.cpp IOException.cpp
IOException.h IOException.h
IStream.h IStream.h

View File

@ -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

View File

@ -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 <cstdio>
#include <filesystem>
namespace deskflow {
namespace fs = std::filesystem;
std::FILE *fopenUtf8Path(const fs::path &path, const std::string &mode);
} // namespace deskflow