[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Comment out some obviously dead code.
commit 9e56ac27da80969fadaad7eaf64a8384e68a778e
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Wed Jun 8 21:23:05 2011 +0200
Comment out some obviously dead code.
Coverity warned about it, it's harmless to comment out.
---
src/or/circuitlist.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 4ad244d..8534c38 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -775,8 +775,8 @@ circuit_get_by_circid_orconn_impl(circid_t circ_id, or_connection_t *conn)
return found->circuit;
return NULL;
-
/* The rest of this checks for bugs. Disabled by default. */
+ /* We comment it out because coverity complains otherwise.
{
circuit_t *circ;
for (circ=global_circuitlist;circ;circ = circ->next) {
@@ -795,7 +795,7 @@ circuit_get_by_circid_orconn_impl(circid_t circ_id, or_connection_t *conn)
}
}
return NULL;
- }
+ } */
}
/** Return a circ such that:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits