kdeui: remove unused KPasteTextAction::setMixedMode() method

not only is the method unused but so is the KPasteTextActionPrivate member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-28 02:31:28 +03:00
parent c9d9c44643
commit 7fda04bcd0
2 changed files with 1 additions and 20 deletions

View file

@ -42,8 +42,7 @@ class KPasteTextActionPrivate
public:
KPasteTextActionPrivate(KPasteTextAction *parent)
: q(parent),
m_popup(nullptr),
m_mixedMode(true)
m_popup(nullptr)
{
}
@ -59,7 +58,6 @@ public:
KPasteTextAction *q;
KMenu *m_popup;
bool m_mixedMode;
};
KPasteTextAction::KPasteTextAction(QObject *parent)
@ -96,11 +94,6 @@ KPasteTextAction::~KPasteTextAction()
delete d;
}
void KPasteTextAction::setMixedMode(bool mode)
{
d->m_mixedMode = mode;
}
void KPasteTextActionPrivate::_k_menuAboutToShow()
{
m_popup->clear();

View file

@ -79,18 +79,6 @@ public:
*/
KPasteTextAction(const KIcon &icon, const QString &text, QObject *parent);
/**
* Controls the behavior of the clipboard history menu popup.
*
* @param mode If false and the clipboard contains a non-text object
* the popup menu with the clipboard history will appear
* immediately as the user clicks the toolbar action; if
* true, the action works like the standard paste action
* even if the current clipboard object is not text.
* Default value is true.
*/
void setMixedMode(bool mode);
private:
KPasteTextActionPrivate * const d;