kparts: remove unused and internal methods

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-21 15:58:54 +03:00
parent 2575ecac5d
commit 4494f07680
3 changed files with 0 additions and 31 deletions

View file

@ -60,7 +60,6 @@ public:
MainWindow::MainWindow( QWidget* parent, Qt::WindowFlags f )
: KXmlGuiWindow( parent, f ), d(new MainWindowPrivate())
{
PartBase::setPartObject( this );
}

View file

@ -59,16 +59,10 @@ public:
Q_DECLARE_PUBLIC(PartBase)
PartBasePrivate(PartBase *q): q_ptr(q)
{
m_obj = 0;
}
virtual ~PartBasePrivate()
{
}
PartBase *q_ptr;
QObject *m_obj;
};
class PartPrivate: public PartBasePrivate
@ -115,20 +109,6 @@ PartBase::~PartBase()
delete d_ptr;
}
void PartBase::setPartObject( QObject *obj )
{
Q_D(PartBase);
d->m_obj = obj;
}
QObject *PartBase::partObject() const
{
Q_D(const PartBase);
return d->m_obj;
}
void PartBase::setComponentData(const KComponentData &componentData)
{
Q_D(PartBase);
@ -143,13 +123,11 @@ void PartBase::setComponentData(const KComponentData &componentData)
Part::Part( QObject *parent )
: QObject( parent ), PartBase( *new PartPrivate(this) )
{
PartBase::setPartObject( this );
}
Part::Part(PartPrivate &dd, QObject *parent)
: QObject( parent ), PartBase( dd )
{
PartBase::setPartObject( this );
}
Part::~Part()

View file

@ -74,14 +74,6 @@ public:
*/
virtual ~PartBase();
/**
* Internal method. Called by KParts::Part to specify the parent object.
*
* @internal
*/
void setPartObject( QObject *object );
QObject *partObject() const;
protected:
/**
* Set the componentData(KComponentData) for this part.