Commit 2bf2e651 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused variable

parent 797bd2ce
......@@ -44,7 +44,9 @@
using namespace Akregator;
FrameManager::FrameManager(QWidget *mainWin, QObject *parent) : QObject(parent), m_mainWin(mainWin), m_currentFrame(0)
FrameManager::FrameManager(QObject *parent)
: QObject(parent),
m_currentFrame(0)
{
}
......@@ -52,11 +54,6 @@ FrameManager::~FrameManager()
{
}
void FrameManager::setMainWindow(QWidget *mainWin)
{
m_mainWin = mainWin;
}
Frame *FrameManager::currentFrame() const
{
return m_currentFrame;
......
......@@ -47,7 +47,7 @@ class AKREGATOR_EXPORT FrameManager : public QObject
public:
explicit FrameManager(QWidget *widget = Q_NULLPTR, QObject *parent = Q_NULLPTR);
explicit FrameManager(QObject *parent = Q_NULLPTR);
~FrameManager();
Frame *currentFrame() const;
......@@ -105,8 +105,6 @@ private Q_SLOTS:
void slotSetTitle(Akregator::Frame *frame, const QString &title);
void slotSetStatusText(Akregator::Frame *frame, const QString &statusText);
private:
QWidget *m_mainWin;
QPointer<Frame> m_currentFrame;
QHash<int, Frame *> m_frames;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment