forked from qt-creator/qt-creator
Core: remove some unused context handling functions
Change-Id: Ib92a2044ff84108416d315aaf68602b2dd41c7eb Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -445,11 +445,6 @@ bool ActionManager::isPresentationModeEnabled()
|
|||||||
return m_instance->d->m_presentationLabel;
|
return m_instance->d->m_presentationLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ActionManager::hasContext(int context)
|
|
||||||
{
|
|
||||||
return m_instance->d->m_context.contains(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class ActionManagerPrivate
|
\class ActionManagerPrivate
|
||||||
\inheaderfile actionmanager_p.h
|
\inheaderfile actionmanager_p.h
|
||||||
|
|||||||
@@ -76,8 +76,6 @@ public:
|
|||||||
static void setPresentationModeEnabled(bool enabled);
|
static void setPresentationModeEnabled(bool enabled);
|
||||||
static bool isPresentationModeEnabled();
|
static bool isPresentationModeEnabled();
|
||||||
|
|
||||||
static bool hasContext(int context);
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void commandListChanged();
|
void commandListChanged();
|
||||||
void commandAdded(const QString &id);
|
void commandAdded(const QString &id);
|
||||||
|
|||||||
@@ -532,11 +532,6 @@ void ICore::updateAdditionalContexts(const Context &remove, const Context &add)
|
|||||||
m_mainwindow->updateAdditionalContexts(remove, add);
|
m_mainwindow->updateAdditionalContexts(remove, add);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ICore::hasContext(int context)
|
|
||||||
{
|
|
||||||
return m_mainwindow->hasContext(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ICore::addContextObject(IContext *context)
|
void ICore::addContextObject(IContext *context)
|
||||||
{
|
{
|
||||||
m_mainwindow->addContextObject(context);
|
m_mainwindow->addContextObject(context);
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ public:
|
|||||||
// Adds and removes additional active contexts, these contexts are appended
|
// Adds and removes additional active contexts, these contexts are appended
|
||||||
// to the currently active contexts.
|
// to the currently active contexts.
|
||||||
static void updateAdditionalContexts(const Context &remove, const Context &add);
|
static void updateAdditionalContexts(const Context &remove, const Context &add);
|
||||||
static bool hasContext(int context);
|
|
||||||
static void addContextObject(IContext *context);
|
static void addContextObject(IContext *context);
|
||||||
static void removeContextObject(IContext *context);
|
static void removeContextObject(IContext *context);
|
||||||
|
|
||||||
|
|||||||
@@ -1226,11 +1226,6 @@ void MainWindow::updateAdditionalContexts(const Context &remove, const Context &
|
|||||||
updateContext();
|
updateContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainWindow::hasContext(int context) const
|
|
||||||
{
|
|
||||||
return ActionManager::hasContext(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::updateContext()
|
void MainWindow::updateContext()
|
||||||
{
|
{
|
||||||
Context contexts;
|
Context contexts;
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ public:
|
|||||||
QStatusBar *statusBar() const;
|
QStatusBar *statusBar() const;
|
||||||
|
|
||||||
void updateAdditionalContexts(const Context &remove, const Context &add);
|
void updateAdditionalContexts(const Context &remove, const Context &add);
|
||||||
bool hasContext(int context) const;
|
|
||||||
|
|
||||||
void setSuppressNavigationWidget(bool suppress);
|
void setSuppressNavigationWidget(bool suppress);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user