chore: remove unused io/Filesystem
This commit is contained in:
@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
add_library(io STATIC
|
||||
Filesystem.cpp
|
||||
Filesystem.h
|
||||
IOException.cpp
|
||||
IOException.h
|
||||
IStream.h
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
Reference in New Issue
Block a user