[Marble-devel] [PATCH 2/3] FileViewItem: size not used anymore

Thibaut GRIDEL tgridel at free.fr
Wed Sep 16 22:18:40 CEST 2009


---
 src/lib/AbstractFileViewItem.h |    1 -
 src/lib/KmlFileViewItem.cpp    |    5 -----
 src/lib/KmlFileViewItem.h      |    1 -
 3 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/lib/AbstractFileViewItem.h b/src/lib/AbstractFileViewItem.h
index 359d338..3284733 100644
--- a/src/lib/AbstractFileViewItem.h
+++ b/src/lib/AbstractFileViewItem.h
@@ -27,7 +27,6 @@ class AbstractFileViewItem
     virtual ~AbstractFileViewItem() {};
 
     virtual void saveFile() = 0;
-    virtual int size() const { return 0; };
     virtual bool isShown() const = 0;
     virtual void setShown( bool value ) = 0;
     virtual QString name() const = 0;
diff --git a/src/lib/KmlFileViewItem.cpp b/src/lib/KmlFileViewItem.cpp
index 8296de1..8445189 100644
--- a/src/lib/KmlFileViewItem.cpp
+++ b/src/lib/KmlFileViewItem.cpp
@@ -41,11 +41,6 @@ GeoDataDocument* KmlFileViewItem::document()
     return &m_document;
 }
 
-int KmlFileViewItem::size() const
-{
-    return m_document.placemarks().size();
-}
-
 bool KmlFileViewItem::isShown() const
 {
     return m_document.isVisible();
diff --git a/src/lib/KmlFileViewItem.h b/src/lib/KmlFileViewItem.h
index c2df6e1..12196b8 100644
--- a/src/lib/KmlFileViewItem.h
+++ b/src/lib/KmlFileViewItem.h
@@ -33,7 +33,6 @@ class KmlFileViewItem : public AbstractFileViewItem
     virtual void saveFile();
     virtual bool isShown() const;
     virtual void setShown( bool value );
-    virtual int size() const;
     virtual QString name() const;
 
     GeoDataDocument* document();
-- 
1.6.3.3





More information about the Marble-devel mailing list