diff options
| author | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-11-05 22:25:22 +0800 |
|---|---|---|
| committer | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-11-05 22:25:22 +0800 |
| commit | f1d3481a2907cbc72d99321f645c4a827ed436d2 (patch) | |
| tree | de581ef2e7d0c43f2b9219c40210e419979150f3 | |
| parent | cf3aad9c414782996b11cb0779a9c3d7252b5420 (diff) | |
| download | PrismLauncher-f1d3481a2907cbc72d99321f645c4a827ed436d2.tar.gz PrismLauncher-f1d3481a2907cbc72d99321f645c4a827ed436d2.tar.bz2 PrismLauncher-f1d3481a2907cbc72d99321f645c4a827ed436d2.zip | |
fix: remove dumb `FS::symlink` function
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
| -rw-r--r-- | launcher/FileSystem.cpp | 13 | ||||
| -rw-r--r-- | launcher/FileSystem.h | 5 |
2 files changed, 0 insertions, 18 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp index 13bb95d9..4026d6c1 100644 --- a/launcher/FileSystem.cpp +++ b/launcher/FileSystem.cpp @@ -163,19 +163,6 @@ bool ensureFolderPathExists(QString foldernamepath) return success; } -bool symlink(const QString& source, const QString& target) -{ - std::error_code err; - - fs::create_symlink(toStdString(source), toStdString(target)); - - if (err) { - qWarning() << "Failed to symlink files:" << QString::fromStdString(err.message()); - } - - return err.value() == 0; -} - bool copy::operator()(const QString& offset) { using copy_opts = fs::copy_options; diff --git a/launcher/FileSystem.h b/launcher/FileSystem.h index 2d4dfb56..b46f3281 100644 --- a/launcher/FileSystem.h +++ b/launcher/FileSystem.h @@ -54,11 +54,6 @@ class FileSystemException : public ::Exception { void write(const QString& filename, const QByteArray& data); /** - * create a symlink - */ -bool symlink(const QString& target, const QString& link); - -/** * read data from a file safely\ */ QByteArray read(const QString& filename); |
