]> Git trees. - libqmvoc.git/commitdiff
Remove unused private vars.
authorFrederik Gladhorn <gladhorn@kde.org>
Thu, 6 Sep 2007 00:03:46 +0000 (00:03 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Thu, 6 Sep 2007 00:03:46 +0000 (00:03 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=708903

keduvocdocument/keduvocdocument.cpp
keduvocdocument/keduvocexpression.cpp
keduvocdocument/keduvocexpression.h

index 541bc4df645d2937cb57a0c1e0e109c0c61f77c9..0582c756634358bc804c73e07446a554288abba4 100644 (file)
@@ -68,8 +68,6 @@ public:
 
     bool                      m_dirty;
     KUrl                      m_url;
-    QList<bool>               m_sortIdentifier;
-    bool                      m_sortLesson;
 
     // save these to document
     QList<KEduVocIdentifier>  m_identifiers;
@@ -116,12 +114,10 @@ void KEduVocDocument::KEduVocDocumentPrivate::init()
     m_lessons.clear();
     m_tenseDescriptions.clear();
     m_identifiers.clear();
-    m_sortIdentifier.clear();
     m_extraSizeHints.clear();
     m_sizeHints.clear();
     m_vocabulary.clear();
     m_dirty = false;
-    m_sortLesson = false;
     m_currentLesson = 0;
     m_queryorg = "";
     m_querytrans = "";
index 7e795d9cf5100d80e0d5fd388b496487ce903479..10b16d104ee40b7e2c833d02ced9f1d374f6b947 100644 (file)
@@ -91,12 +91,10 @@ KEduVocExpression::KEduVocExpression( const QStringList & translations, int less
     }
 }
 
-
 KEduVocExpression::KEduVocExpression( const KEduVocExpression &expression )
         : d( new KEduVocExpressionPrivate( *expression.d ) )
 {}
 
-
 KEduVocExpression::~KEduVocExpression()
 {
     delete d;
@@ -111,14 +109,9 @@ void KEduVocExpression::removeTranslation( int index )
 
 void KEduVocExpression::setTranslation( int index, const QString & expr )
 {
-    if ( index < 0 )
+    if ( index < 0 ) {
         return;
-
-// extend translations with empty strings if necessary
-//     for ( int i = d->m_translations.count(); i <= index; i++ ) {
-//         d->m_translations[i] = KEduVocTranslation( "" );
-//     }
-//  if (index <= translations.count())
+    }
 
     d->m_translations[index] = expr.simplified();
 }
index 7c950b8fb39d8212dcb67a15d01c70674f997b80..c6050c011cfc36eeb9f5b1be87636ada404fc11c 100644 (file)
@@ -103,7 +103,7 @@ public:
      */
     void setTranslation( int index, const QString &expression );
 
-    void setTranslation( const QString &identifier, const QString & expression );
+//     void setTranslation( const QString &identifier, const QString & expression );
 
     /** removes a translation
      *