OSDN Git Service

remove unused.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Mon, 11 Jun 2007 15:39:11 +0000 (15:39 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Mon, 11 Jun 2007 15:39:11 +0000 (15:39 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1945 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/thread/htmlpart.cpp
kita/src/thread/htmlpart.h

index 83978b4..3f6d8d8 100644 (file)
@@ -631,45 +631,6 @@ QString KitaHTMLPart::getCurrentIDofNode()
     return static_cast<DOM::Element>( node ).getAttribute( "id" ).string();
 }
 
-
-/*---------------------------------------------------------------*/
-/*---------------------------------------------------------------*/
-/* Tugi100, Mae100 etc.  */
-
-
-/* public slot */
-void KitaHTMLPart::slotClickTugi100()
-{
-    if ( !m_domtree ) return ;
-    if ( m_mode != HTMLPART_MODE_MAINPART ) return ;
-
-    int bottom = m_domtree->getBottomResNumber();
-    int readNum = Kita::DatManager::getReadNum( m_datURL );
-
-    if ( readNum != bottom ) {
-        showResponses( bottom + 1, bottom + 100 );
-        updateScreen( TRUE, TRUE );
-    }
-}
-
-
-
-/* public slot */
-void KitaHTMLPart::slotClickNokori()
-{
-    if ( !m_domtree ) return ;
-    if ( m_mode != HTMLPART_MODE_MAINPART ) return ;
-
-    int bottom = m_domtree->getBottomResNumber();
-    int readNum = Kita::DatManager::getReadNum( m_datURL );
-
-    if ( readNum != bottom ) {
-        showResponses( bottom + 1, readNum );
-        updateScreen( TRUE, TRUE );
-    }
-}
-
-
 /* public slot */
 void KitaHTMLPart::slotClickGotoFooter()
 {
@@ -692,94 +653,6 @@ void KitaHTMLPart::slotClickGotoFooter()
 }
 
 
-
-/* public slot */
-void KitaHTMLPart::slotClickMae100()
-{
-    if ( !m_domtree ) return ;
-    if ( m_mode != HTMLPART_MODE_MAINPART ) return ;
-
-    int top = m_domtree->getTopResNumber();
-    int bottom = m_domtree->getBottomResNumber();
-
-    if ( top != 1 ) {
-        m_domtree->appendTemplate( 0 );
-        showResponses( top - 100, bottom );
-        updateScreen( TRUE, TRUE );
-
-        gotoAnchor( QString().setNum( top ), FALSE );
-    }
-}
-
-
-
-/* public slot */
-void KitaHTMLPart::slotClickMaeZenbu()
-{
-    if ( !m_domtree ) return ;
-    if ( m_mode != HTMLPART_MODE_MAINPART ) return ;
-
-    int top = m_domtree->getTopResNumber();
-    int bottom = m_domtree->getBottomResNumber();
-
-    if ( top != 1 ) {
-        showResponses( 1, bottom );
-        updateScreen( TRUE, TRUE );
-
-        gotoAnchor( QString().setNum( top ), FALSE );
-    }
-}
-
-
-/* public slot */
-void KitaHTMLPart::slotClickTmpNext100()
-{
-    if ( !m_domtree ) return ;
-    if ( m_mode != HTMLPART_MODE_MAINPART ) return ;
-
-    int top = m_domtree->getTopResNumber();
-    int bottom = m_domtree->getBottomResNumber();
-    int tmpnum = m_domtree->getTemplateNumber();
-
-    if ( tmpnum < top ) {
-        m_domtree->appendTemplate( tmpnum + 100 );
-        showResponses( top, bottom );
-        updateScreen( TRUE, TRUE );
-
-        gotoAnchor( QString().setNum( tmpnum ), FALSE );
-    }
-}
-
-
-/* public slot */
-void KitaHTMLPart::slotClickShowAll()
-{
-    if ( !m_domtree ) return ;
-    if ( m_mode != HTMLPART_MODE_MAINPART ) return ;
-
-    int top = m_domtree->getTopResNumber();
-    int bottom = m_domtree->getBottomResNumber();
-    int readNum = Kita::DatManager::getReadNum( m_datURL );
-
-    if ( top != 1 || bottom != readNum ) {
-
-        QCursor qc; qc.setShape( Qt::WaitCursor );
-        QApplication::setOverrideCursor( qc );
-
-        showResponses( 1, readNum );
-        updateScreen( TRUE, FALSE );
-
-        QApplication::restoreOverrideCursor();
-
-        gotoAnchor( "header", FALSE );
-    }
-}
-
-
-
-
-
-
 /*---------------------------------------------------------------*/
 /*---------------------------------------------------------------*/
 /* search */
@@ -1575,33 +1448,9 @@ bool KitaHTMLPart::showNext100Etc( const QString& refstr )
 {
     if ( m_mode != HTMLPART_MODE_MAINPART ) return FALSE;
 
-    if ( refstr.left( 7 ) == "tugi100" ) {
-        slotClickTugi100();
-        return TRUE;
-
-    } else if ( refstr.left( 6 ) == "nokori" ) {
-        slotClickNokori();
-        return TRUE;
-
-    } else if ( refstr.left( 7 ) == "tosaigo" ) {
+    if ( refstr.left( 7 ) == "tosaigo" ) {
         slotClickGotoFooter();
         return TRUE;
-
-    } else if ( refstr.left( 6 ) == "mae100" ) {
-        slotClickMae100();
-        return TRUE;
-
-    } else if ( refstr.left( 8 ) == "maezenbu" ) {
-        slotClickMaeZenbu();
-        return TRUE;
-
-    } else if ( refstr.left( 6 ) == "tmp100" ) {
-        slotClickTmpNext100();
-        return TRUE;
-
-    } else if ( refstr.left( 5 ) == "zenbu" ) {
-        slotClickShowAll();
-        return TRUE;
     }
 
     return FALSE;
index 6ae4e91..f530c75 100644 (file)
@@ -125,13 +125,7 @@ public slots:
     void slotGobackAnchor();
 
     /* Tugi100, Mae100 etc.  */
-    void slotClickTugi100();
-    void slotClickNokori();
     void slotClickGotoFooter();
-    void slotClickMae100();
-    void slotClickMaeZenbu();
-    void slotClickTmpNext100();
-    void slotClickShowAll();
 
     /* res popup */
     void slotDeletePopup();