From 4680806c22042e58cbe14c07e60542e8f44d96a4 Mon Sep 17 00:00:00 2001 From: alex-z Date: Thu, 14 Sep 2023 13:17:31 +0200 Subject: [PATCH] Remove unused function 'revertPlaceholder'. Signed-off-by: alex-z --- src/libsync/vfs/cfapi/cfapiwrapper.cpp | 11 ----------- src/libsync/vfs/cfapi/cfapiwrapper.h | 1 - 2 files changed, 12 deletions(-) diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.cpp b/src/libsync/vfs/cfapi/cfapiwrapper.cpp index ac9e90b9ed6c3..ee729896300a5 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -862,14 +862,3 @@ OCC::Result OCC::CfApiWrapper::co return stateResult; } } - -OCC::Result OCC::CfApiWrapper::revertPlaceholder(const QString &path) -{ - const auto result = CfRevertPlaceholder(handleForPath(path).get(), CF_REVERT_FLAG_NONE, nullptr); - if (result != S_OK) { - qCWarning(lcCfApiWrapper) << "Couldn't revert placeholder for" << path << ":" << QString::fromWCharArray(_com_error(result).ErrorMessage()); - return {"Couldn't revert placeholder"}; - } - - return OCC::Vfs::ConvertToPlaceholderResult::Ok; -} diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.h b/src/libsync/vfs/cfapi/cfapiwrapper.h index ee5c20216dcbd..10cb51aaa82bb 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.h +++ b/src/libsync/vfs/cfapi/cfapiwrapper.h @@ -97,7 +97,6 @@ NEXTCLOUD_CFAPI_EXPORT Result createPlaceholderInfo(const QString NEXTCLOUD_CFAPI_EXPORT Result updatePlaceholderInfo(const QString &path, time_t modtime, qint64 size, const QByteArray &fileId, const QString &replacesPath = QString()); NEXTCLOUD_CFAPI_EXPORT Result convertToPlaceholder(const QString &path, time_t modtime, qint64 size, const QByteArray &fileId, const QString &replacesPath); NEXTCLOUD_CFAPI_EXPORT Result dehydratePlaceholder(const QString &path, time_t modtime, qint64 size, const QByteArray &fileId); -NEXTCLOUD_CFAPI_EXPORT Result revertPlaceholder(const QString &path); }