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;
|
||||
}
|
||||
|
||||
bool ActionManager::hasContext(int context)
|
||||
{
|
||||
return m_instance->d->m_context.contains(context);
|
||||
}
|
||||
|
||||
/*!
|
||||
\class ActionManagerPrivate
|
||||
\inheaderfile actionmanager_p.h
|
||||
|
||||
@@ -76,8 +76,6 @@ public:
|
||||
static void setPresentationModeEnabled(bool enabled);
|
||||
static bool isPresentationModeEnabled();
|
||||
|
||||
static bool hasContext(int context);
|
||||
|
||||
signals:
|
||||
void commandListChanged();
|
||||
void commandAdded(const QString &id);
|
||||
|
||||
@@ -532,11 +532,6 @@ void ICore::updateAdditionalContexts(const Context &remove, const Context &add)
|
||||
m_mainwindow->updateAdditionalContexts(remove, add);
|
||||
}
|
||||
|
||||
bool ICore::hasContext(int context)
|
||||
{
|
||||
return m_mainwindow->hasContext(context);
|
||||
}
|
||||
|
||||
void ICore::addContextObject(IContext *context)
|
||||
{
|
||||
m_mainwindow->addContextObject(context);
|
||||
|
||||
@@ -117,7 +117,6 @@ public:
|
||||
// Adds and removes additional active contexts, these contexts are appended
|
||||
// to the currently active contexts.
|
||||
static void updateAdditionalContexts(const Context &remove, const Context &add);
|
||||
static bool hasContext(int context);
|
||||
static void addContextObject(IContext *context);
|
||||
static void removeContextObject(IContext *context);
|
||||
|
||||
|
||||
@@ -1226,11 +1226,6 @@ void MainWindow::updateAdditionalContexts(const Context &remove, const Context &
|
||||
updateContext();
|
||||
}
|
||||
|
||||
bool MainWindow::hasContext(int context) const
|
||||
{
|
||||
return ActionManager::hasContext(context);
|
||||
}
|
||||
|
||||
void MainWindow::updateContext()
|
||||
{
|
||||
Context contexts;
|
||||
|
||||
@@ -115,7 +115,6 @@ public:
|
||||
QStatusBar *statusBar() const;
|
||||
|
||||
void updateAdditionalContexts(const Context &remove, const Context &add);
|
||||
bool hasContext(int context) const;
|
||||
|
||||
void setSuppressNavigationWidget(bool suppress);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user