mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
generic: remove unused functions, members and methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
af1f18f3e3
commit
751528cbe8
17 changed files with 9 additions and 115 deletions
|
@ -94,32 +94,6 @@ static X11ModInfo g_rgX11ModInfo[4] =
|
|||
{ Qt::META, X11_ONLY(Mod4Mask) }
|
||||
};
|
||||
|
||||
// Special Names List
|
||||
static const SymName g_rgSymNames[] = {
|
||||
{ XK_ISO_Left_Tab, "Backtab" },
|
||||
{ XK_BackSpace, I18N_NOOP("Backspace") },
|
||||
{ XK_Sys_Req, I18N_NOOP("SysReq") },
|
||||
{ XK_Caps_Lock, I18N_NOOP("CapsLock") },
|
||||
{ XK_Num_Lock, I18N_NOOP("NumLock") },
|
||||
{ XK_Scroll_Lock, I18N_NOOP("ScrollLock") },
|
||||
{ XK_Prior, I18N_NOOP("PageUp") },
|
||||
{ XK_Next, I18N_NOOP("PageDown") },
|
||||
#ifdef sun
|
||||
{ XK_F11, I18N_NOOP("Stop") },
|
||||
{ XK_F12, I18N_NOOP("Again") },
|
||||
{ XK_F13, I18N_NOOP("Props") },
|
||||
{ XK_F14, I18N_NOOP("Undo") },
|
||||
{ XK_F15, I18N_NOOP("Front") },
|
||||
{ XK_F16, I18N_NOOP("Copy") },
|
||||
{ XK_F17, I18N_NOOP("Open") },
|
||||
{ XK_F18, I18N_NOOP("Paste") },
|
||||
{ XK_F19, I18N_NOOP("Find") },
|
||||
{ XK_F20, I18N_NOOP("Cut") },
|
||||
{ XK_F22, I18N_NOOP("Print") },
|
||||
#endif
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
// These are the X equivalents to the Qt keycodes 0x1000 - 0x1026
|
||||
static const TransKey g_rgQtToSymX[] =
|
||||
{
|
||||
|
|
|
@ -200,21 +200,7 @@ KPopupFrame::KPopupFramePrivate::~KPopupFramePrivate()
|
|||
}
|
||||
|
||||
|
||||
class KDateValidator::KDateValidatorPrivate
|
||||
{
|
||||
public:
|
||||
KDateValidatorPrivate( KDateValidator *q ): q( q )
|
||||
{
|
||||
}
|
||||
|
||||
~KDateValidatorPrivate()
|
||||
{
|
||||
}
|
||||
|
||||
KDateValidator *q;
|
||||
};
|
||||
|
||||
KDateValidator::KDateValidator( QWidget *parent ) : QValidator( parent ), d( 0 )
|
||||
KDateValidator::KDateValidator( QWidget *parent ) : QValidator( parent )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -116,10 +116,6 @@ public:
|
|||
virtual State validate( QString &text, int &e ) const;
|
||||
virtual void fixup ( QString &input ) const;
|
||||
State date( const QString &text, QDate &date ) const;
|
||||
private:
|
||||
class KDateValidatorPrivate;
|
||||
friend class KDateValidatorPrivate;
|
||||
KDateValidatorPrivate * const d;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
|
||||
KDialogButtonBox::KDialogButtonBox(QWidget *parent, Qt::Orientation _orientation)
|
||||
: QDialogButtonBox(_orientation, parent) , d(0)
|
||||
: QDialogButtonBox(_orientation, parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ class QPushButton;
|
|||
class KPushButton;
|
||||
class KGuiItem;
|
||||
|
||||
class KDialogButtonBoxPrivate;
|
||||
/**
|
||||
* Container widget for buttons.
|
||||
*
|
||||
|
@ -92,9 +91,6 @@ public:
|
|||
KPushButton *addButton(const KGuiItem& guiitem,ButtonRole role, QObject * receiver=0, const char * slot=0);
|
||||
|
||||
using QDialogButtonBox::addButton;
|
||||
|
||||
private:
|
||||
KDialogButtonBoxPrivate* const d;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -143,7 +143,7 @@ void KMultiTabBarInternal::setPosition(enum KMultiTabBar::KMultiTabBarPosition p
|
|||
|
||||
KMultiTabBarButton::KMultiTabBarButton(const QPixmap& pic, const QString& text,
|
||||
int id, QWidget *parent)
|
||||
: QPushButton(QIcon(pic), text, parent), m_id(id), d(0)
|
||||
: QPushButton(QIcon(pic), text, parent), m_id(id)
|
||||
{
|
||||
connect(this,SIGNAL(clicked()),this,SLOT(slotClicked()));
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ class QStyleOptionToolButton;
|
|||
|
||||
class KMultiTabBarPrivate;
|
||||
class KMultiTabBarTabPrivate;
|
||||
class KMultiTabBarButtonPrivate;
|
||||
class KMultiTabBarInternal;
|
||||
|
||||
/**
|
||||
|
@ -183,7 +182,6 @@ private:
|
|||
friend class KMultiTabBar;
|
||||
|
||||
int m_id;
|
||||
KMultiTabBarButtonPrivate * const d;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -164,29 +164,6 @@ bool KXMLGUIFactory::saveConfigFile( const QDomDocument& doc,
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all QDomComment objects from the specified node and all its children.
|
||||
*/
|
||||
static void removeDOMComments( QDomNode &node )
|
||||
{
|
||||
QDomNode n = node.firstChild();
|
||||
while ( !n.isNull() )
|
||||
{
|
||||
if ( n.nodeType() == QDomNode::CommentNode )
|
||||
{
|
||||
QDomNode tmp = n;
|
||||
n = n.nextSibling();
|
||||
node.removeChild( tmp );
|
||||
}
|
||||
else
|
||||
{
|
||||
QDomNode tmp = n;
|
||||
n = n.nextSibling();
|
||||
removeDOMComments( tmp );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
KXMLGUIFactory::KXMLGUIFactory( KXMLGUIBuilder *builder, QObject *parent )
|
||||
: QObject( parent ),d(new KXMLGUIFactoryPrivate)
|
||||
{
|
||||
|
|
|
@ -124,23 +124,6 @@ inline static void pic2RGBA(unsigned char *src_pixel, unsigned char *target_pixe
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Counts the number of channels in the PICChannel header
|
||||
* @param channels The header
|
||||
* @return The number of used channels
|
||||
*/
|
||||
inline static unsigned getNumChannels(PICChannel *channels) {
|
||||
unsigned result = 0;
|
||||
for (unsigned i = 0; i < 8; i++) {
|
||||
if (channels[i].channel != 0) {
|
||||
result++;
|
||||
} else {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Decodes a Run-lenght encoded chunk
|
||||
* @param dev The device to read from
|
||||
|
|
|
@ -92,10 +92,8 @@ public:
|
|||
QStringList allowedUsers( bool defaults, KACLListViewItem *allowedItem = 0 );
|
||||
QStringList allowedGroups( bool defaults, KACLListViewItem *allowedItem = 0 );
|
||||
|
||||
const KACL getACL() const { return getACL(); }
|
||||
KACL getACL();
|
||||
|
||||
const KACL getDefaultACL() const { return getDefaultACL(); }
|
||||
KACL getDefaultACL();
|
||||
|
||||
QPixmap getYesPixmap() const { return *m_yesPixmap; }
|
||||
|
|
|
@ -70,7 +70,6 @@ namespace KIO {
|
|||
};
|
||||
long len;
|
||||
int cmd;
|
||||
int port;
|
||||
bool signalEmitted;
|
||||
quint8 mode;
|
||||
|
||||
|
|
|
@ -391,9 +391,8 @@ static void verifyRunningJobsCount(QHash<QString, HostQueue> *queues, int runnin
|
|||
}
|
||||
|
||||
|
||||
ProtoQueue::ProtoQueue(SchedulerPrivate *sp, int maxSlaves, int maxSlavesPerHost)
|
||||
: m_schedPrivate(sp),
|
||||
m_maxConnectionsPerHost(maxSlavesPerHost ? maxSlavesPerHost : maxSlaves),
|
||||
ProtoQueue::ProtoQueue(int maxSlaves, int maxSlavesPerHost)
|
||||
: m_maxConnectionsPerHost(maxSlavesPerHost ? maxSlavesPerHost : maxSlaves),
|
||||
m_maxConnectionsTotal(qMax(maxSlaves, maxSlavesPerHost)),
|
||||
m_runningJobsCount(0)
|
||||
|
||||
|
@ -732,7 +731,7 @@ public:
|
|||
maxSlavesPerHost = KProtocolInfo::maxSlavesPerHost(protocol);
|
||||
}
|
||||
// Never allow maxSlavesPerHost to exceed maxSlaves.
|
||||
pq = new ProtoQueue(this, maxSlaves, qMin(maxSlaves, maxSlavesPerHost));
|
||||
pq = new ProtoQueue(maxSlaves, qMin(maxSlaves, maxSlavesPerHost));
|
||||
m_protocols.insert(protocol, pq);
|
||||
}
|
||||
return pq;
|
||||
|
|
|
@ -106,8 +106,6 @@ private:
|
|||
};
|
||||
|
||||
|
||||
class SchedulerPrivate;
|
||||
|
||||
class SerialPicker
|
||||
{
|
||||
public:
|
||||
|
@ -137,7 +135,7 @@ class ProtoQueue : public QObject
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ProtoQueue(KIO::SchedulerPrivate *sp, int maxSlaves, int maxSlavesPerHost);
|
||||
ProtoQueue(int maxSlaves, int maxSlavesPerHost);
|
||||
~ProtoQueue();
|
||||
|
||||
void queueJob(KIO::SimpleJob *job);
|
||||
|
@ -157,7 +155,6 @@ private:
|
|||
QTimer m_startJobTimer;
|
||||
QMap<int, HostQueue *> m_queuesBySerial;
|
||||
QHash<QString, HostQueue> m_queuesByHostname;
|
||||
KIO::SchedulerPrivate *m_schedPrivate;
|
||||
SlaveKeeper m_slaveKeeper;
|
||||
int m_maxConnectionsPerHost;
|
||||
int m_maxConnectionsTotal;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
using namespace KIO;
|
||||
|
||||
SkipDialog::SkipDialog(QWidget *parent, bool _multi, const QString& _error_text )
|
||||
: KDialog ( parent ), d( 0 )
|
||||
: KDialog ( parent )
|
||||
{
|
||||
setCaption( i18n( "Information" ) );
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ namespace KIO {
|
|||
|
||||
enum SkipDialog_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 };
|
||||
|
||||
class SkipDialogPrivate;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
@ -46,9 +45,6 @@ private Q_SLOTS:
|
|||
|
||||
Q_SIGNALS:
|
||||
void result( SkipDialog *_this, int _button );
|
||||
|
||||
private:
|
||||
SkipDialogPrivate * const d;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -38,8 +38,7 @@ namespace Plasma
|
|||
{
|
||||
|
||||
ScriptEngine::ScriptEngine(QObject *parent)
|
||||
: QObject(parent),
|
||||
d(0)
|
||||
: QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ class RunnerScript;
|
|||
class Wallpaper;
|
||||
class WallpaperScript;
|
||||
class Package;
|
||||
class ScriptEnginePrivate;
|
||||
|
||||
/**
|
||||
* @class ScriptEngine plasma/scripting/scriptengine.h <Plasma/Scripting/ScriptEngine>
|
||||
|
@ -88,9 +87,6 @@ protected:
|
|||
* interface files.
|
||||
*/
|
||||
virtual const Package *package() const;
|
||||
|
||||
private:
|
||||
ScriptEnginePrivate *const d;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue