Skip to content

Commit 9d772f6

Browse files
committed
refactor(ImageWriter): Remove unused getClipboardText method
1 parent 73907e3 commit 9d772f6

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/imagewriter.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,14 +2653,3 @@ QString ImageWriter::getRuntimeConnectToken() const
26532653
{
26542654
return _piConnectToken;
26552655
}
2656-
2657-
QString ImageWriter::getClipboardText() const
2658-
{
2659-
#ifndef CLI_ONLY_BUILD
2660-
QClipboard *clipboard = QGuiApplication::clipboard();
2661-
if (clipboard) {
2662-
return clipboard->text();
2663-
}
2664-
#endif
2665-
return QString();
2666-
}

src/imagewriter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ class ImageWriter : public QObject
273273
Q_INVOKABLE void handleIncomingUrl(const QUrl &url);
274274
Q_INVOKABLE void overwriteConnectToken(const QString &token);
275275
Q_INVOKABLE QString getRuntimeConnectToken() const;
276-
Q_INVOKABLE QString getClipboardText() const;
277276
Q_INVOKABLE bool verifyAuthKey(const QString &token, bool strict = false) const;
278277

279278
/* Override OS list refresh schedule (in minutes); pass negative to clear override */

0 commit comments

Comments
 (0)