[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdevplatform] shell/workingsets: Remove dead code.
From: Milian Wolff <mail () milianw ! de>
Date: 2013-10-20 13:52:21
Message-ID: E1VXtQb-0002Qp-20 () scm ! kde ! org
[Download RAW message or body]
Git commit c9790da96078287e676ea9bec8683687edff0196 by Milian Wolff.
Committed on 20/10/2013 at 13:45.
Pushed by mwolff into branch 'master'.
Remove dead code.
M +2 -13 shell/workingsets/workingset.cpp
M +0 -5 shell/workingsets/workingset.h
http://commits.kde.org/kdevplatform/c9790da96078287e676ea9bec8683687edff0196
diff --git a/shell/workingsets/workingset.cpp b/shell/workingsets/workingset.cpp
index 9ed787f..bfe93ca 100644
--- a/shell/workingsets/workingset.cpp
+++ b/shell/workingsets/workingset.cpp
@@ -116,17 +116,12 @@ QIcon generateIcon(const QString& id)
}
WorkingSet::WorkingSet(const QString& id)
- : m_id(id)
+ : QObject()
+ , m_id(id)
, m_icon(generateIcon(id))
{
}
-WorkingSet::WorkingSet( const KDevelop::WorkingSet& rhs )
- : m_id(rhs.m_id + "_copy_")
-{
- ///FIXME: what about the icon?
-}
-
void WorkingSet::saveFromArea( Sublime::Area* a, Sublime::AreaIndex * area, \
KConfigGroup setGroup, KConfigGroup areaGroup ) {
if (area->isSplit()) {
@@ -500,12 +495,6 @@ QString WorkingSet::id() const
return m_id;
}
-WorkingSet* WorkingSet::clone()
-{
- WorkingSet* ret = new WorkingSet( *this );
- return ret;
-}
-
bool WorkingSet::hasConnectedAreas() const
{
return !m_areas.isEmpty();
diff --git a/shell/workingsets/workingset.h b/shell/workingsets/workingset.h
index d292d1f..047240f 100644
--- a/shell/workingsets/workingset.h
+++ b/shell/workingsets/workingset.h
@@ -48,9 +48,6 @@ public:
QString id() const;
- ///Creates a copy of this working-set with a new identity
- WorkingSet* clone();
-
QStringList fileList() const;
bool isEmpty() const;
@@ -87,8 +84,6 @@ private:
void saveFromArea(Sublime::Area* area, Sublime::AreaIndex *areaIndex, \
KConfigGroup setGroup, KConfigGroup areaGroup);
void loadToArea(Sublime::Area* area, Sublime::AreaIndex *areaIndex, KConfigGroup \
setGroup, KConfigGroup areaGroup, QMultiMap<QString, Sublime::View*>& recycle);
- WorkingSet(const WorkingSet& rhs);
-
QString m_id;
QIcon m_icon;
QList<QPointer<Sublime::Area> > m_areas;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic