[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r2525: Remove a bit of dead code. It was basically a hacky workarou (in vidalia/trunk: . src/vidalia/network)
Author: edmanm
Date: 2008-04-14 15:35:17 -0400 (Mon, 14 Apr 2008)
New Revision: 2525
Modified:
vidalia/trunk/
vidalia/trunk/src/vidalia/network/routerlistwidget.cpp
vidalia/trunk/src/vidalia/network/routerlistwidget.h
Log:
r379@lysithea: edmanm | 2008-04-13 23:33:50 -0400
Remove a bit of dead code. It was basically a hacky workaround for old Tors
that only listed server names in circ events, even if those servers were not
Named.
Property changes on: vidalia/trunk
___________________________________________________________________
svk:merge ticket from /local/vidalia/trunk [r379] on 90112fd6-a33b-4cea-8d39-48ff1d78625c
Modified: vidalia/trunk/src/vidalia/network/routerlistwidget.cpp
===================================================================
--- vidalia/trunk/src/vidalia/network/routerlistwidget.cpp 2008-04-13 19:07:46 UTC (rev 2524)
+++ vidalia/trunk/src/vidalia/network/routerlistwidget.cpp 2008-04-14 19:35:17 UTC (rev 2525)
@@ -130,23 +130,6 @@
return 0;
}
-/** Finds the list item whose router nickname matches <b>name</b>. If more
- * than one router exists with given name, the first match will be returned.
- * Returns 0 if not found. */
-RouterListItem*
-RouterListWidget::findRouterByName(QString name)
-{
- QList<QTreeWidgetItem *> list = findItems(name, Qt::MatchExactly,
- NameColumn);
- /* It's possible that more than one router could have the same name, but
- * without a fingerprint on which to match, we just have to pick one. We'll
- * return the first match. */
- if (list.size() > 0) {
- return (RouterListItem *)list.at(0);
- }
- return 0;
-}
-
/** Adds a router descriptor to the list. */
void
RouterListWidget::addRouter(RouterDescriptor rd)
Modified: vidalia/trunk/src/vidalia/network/routerlistwidget.h
===================================================================
--- vidalia/trunk/src/vidalia/network/routerlistwidget.h 2008-04-13 19:07:46 UTC (rev 2524)
+++ vidalia/trunk/src/vidalia/network/routerlistwidget.h 2008-04-14 19:35:17 UTC (rev 2525)
@@ -47,10 +47,6 @@
/** Adds a new descriptor the list. */
void addRouter(RouterDescriptor rd);
- /** Finds the list item whose router nickname matches <b>name</b>. If more
- * than one router exists with given name, the first match will be
- * returned. Returns 0 if not found. */
- RouterListItem* findRouterByName(QString name);
/** Finds the list item whose key ID matches <b>id</b>. Returns 0 if not
* found. */
RouterListItem* findRouterById(QString id);