diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp index 3682a19b9233a..b03e4c89c7933 100644 --- a/src/gui/socketapi/socketapi.cpp +++ b/src/gui/socketapi/socketapi.cpp @@ -890,24 +890,6 @@ void SocketApi::command_COPY_SECUREFILEDROP_LINK(const QString &localFile, Socke getOrCreatePublicLinkShareJob->run(); } -// Windows Shell / Explorer pinning fallbacks, see issue: https://github.com/nextcloud/desktop/issues/1599 -#ifdef Q_OS_WIN -void SocketApi::command_COPYASPATH(const QString &localFile, SocketListener *) -{ - setClipboardText(localFile); -} - -void SocketApi::command_OPENNEWWINDOW(const QString &localFile, SocketListener *) -{ - QDesktopServices::openUrl(QUrl::fromLocalFile(localFile)); -} - -void SocketApi::command_OPEN(const QString &localFile, SocketListener *socketListener) -{ - command_OPENNEWWINDOW(localFile, socketListener); -} -#endif - // Fetches the private link url asynchronously and then calls the target slot void SocketApi::fetchPrivateLinkUrlHelper(const QString &localFile, const std::function &targetFun) { diff --git a/src/gui/socketapi/socketapi.h b/src/gui/socketapi/socketapi.h index 5dcf6900e8c04..d3667d0ad39b9 100644 --- a/src/gui/socketapi/socketapi.h +++ b/src/gui/socketapi/socketapi.h @@ -134,13 +134,6 @@ private slots: void setFileLock(const QString &localFile, const SyncFileItem::LockStatus lockState) const; - // Windows Shell / Explorer pinning fallbacks, see issue: https://github.com/nextcloud/desktop/issues/1599 -#ifdef Q_OS_WIN - Q_INVOKABLE void command_COPYASPATH(const QString &localFile, OCC::SocketListener *listener); - Q_INVOKABLE void command_OPENNEWWINDOW(const QString &localFile, OCC::SocketListener *listener); - Q_INVOKABLE void command_OPEN(const QString &localFile, OCC::SocketListener *listener); -#endif - // Fetch the private link and call targetFun void fetchPrivateLinkUrlHelper(const QString &localFile, const std::function &targetFun);