OSDN Git Service

refactoring.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 9 Oct 2004 16:18:12 +0000 (16:18 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 9 Oct 2004 16:18:12 +0000 (16:18 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1433 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/favoritelistview.cpp
kita/src/kitasubjectview.cpp
kita/src/libkita/favoritethreads.cpp
kita/src/threadlistview.cpp

index f7973a7..62e61a0 100644 (file)
@@ -72,7 +72,6 @@ void FavoriteListView::update()
     QValueList<QString>::const_iterator it;
     for ( it = threadList.begin(); it != threadList.end(); ++it ) {
         QString datURL = ( *it );
-        const Kita::Thread* thread = Kita::Thread::getByURL( datURL );
 
         QDateTime since;
         since.setTime_t( Kita::datToSince( datURL ) );
@@ -115,7 +114,6 @@ void FavoriteListView::loadThread( QListViewItem* item )
 void FavoriteListView::slotUpdateSubject( const KURL& url )
 {
     KURL datURL = Kita::ParseMisc::parseURLonly( url );
-    Kita::Thread* updated_thread = Kita::Thread::getByURLNew( datURL );
     for ( QListViewItem * item = subjectList->firstChild(); item; item = item->nextSibling() ) {
         if ( item->text( Col_DatURL ) == datURL.prettyURL() ) {
             int resNum = KitaThreadInfo::resNum( datURL.prettyURL() );
@@ -140,7 +138,6 @@ void FavoriteListView::slotContextMenuRequested( QListViewItem* item, const QPoi
     popup.insertItem( i18n( "Remove from Favorites" ), 3 );
 
     QString datURL = item->text( Col_DatURL );
-    Kita::Thread* thread = Kita::Thread::getByURL( datURL );
     QString threadURL = Kita::DatManager::threadURL( datURL );
 
     QClipboard* clipboard = QApplication::clipboard();
index ce592c8..f79bdca 100644 (file)
@@ -145,7 +145,6 @@ void KitaSubjectView::loadBoard( const QString& boardURL )
     m_readNum = 0;
     m_newNum = 0;
 
-    KitaThreadInfo* cache = KitaThreadInfo::getInstance();
     QPtrList<Kita::Thread> threadList = Kita::Board::getThreadList( boardURL );
 
     // clear list
@@ -254,7 +253,6 @@ void KitaSubjectView::slotUpdateSubject( const KURL& url )
     QDateTime currentdat = QDateTime::currentDateTime();
 
     KURL datURL = Kita::ParseMisc::parseURLonly( url );
-    Kita::Thread* updated_thread = Kita::Thread::getByURLNew( datURL );
     for ( QListViewItem * item = subjectList->firstChild(); item; item = item->nextSibling() ) {
         if ( item->text( Col_DatURL ) == datURL.prettyURL() ) {
             QDateTime since;
@@ -314,7 +312,6 @@ void KitaSubjectView::slotContextMenuRequested( QListViewItem* item, const QPoin
     }
 
     QString datURL = item->text( Col_DatURL );
-    Kita::Thread* thread = Kita::Thread::getByURL( datURL );
     QString threadURL = Kita::DatManager::threadURL( datURL );
     bool isFavorites = FavoriteThreads::getInstance() ->contains( datURL );
 
index 86d6d36..b841f6b 100644 (file)
@@ -144,7 +144,6 @@ const QString FavoriteThreads::toXML() const
     QValueList<QString>::const_iterator it;
     for ( it = threadList().begin(); it != threadList().end(); ++it ) {
         QString datURL = ( *it );
-        const Kita::Thread* thread = Kita::Thread::getByURL( *it );
         QDomElement threadElement = document.createElementNS( "http://kita.sourceforge.jp/ns/thread", "thread" );
         root.appendChild( threadElement );
 
index 8567e82..0f04d40 100644 (file)
@@ -168,8 +168,6 @@ void ThreadListView::slotMouseButtonClicked( int button, QListViewItem* item )
 
     KURL datURL = item->text( Col_DatURL );
 
-    Kita::Thread* thread = Kita::Thread::getByURL( datURL.url() );
-
     switch ( button ) {
     case MidButton:
         emit openURLRequestExt( datURL.prettyURL(), KParts::URLArgs(), "kita_open_2chthread", 1 );