diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-01-17 14:40:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-01-17 14:40:12 -0500 |
commit | ae58303d423f4e50032c5610cc479d550fe2bd37 (patch) | |
tree | f6069b7d96a9665ffbb0115f6850558b805a56e3 | |
parent | 2386a98d461bfbd8bbe0f5a17402841599c769e5 (diff) | |
download | tor-ae58303d423f4e50032c5610cc479d550fe2bd37.tar tor-ae58303d423f4e50032c5610cc479d550fe2bd37.tar.gz |
Even more code-removal for 6826
(Pull on a thread and the whole sweater unravels.)
-rw-r--r-- | src/common/compat_libevent.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index 2f41ed945..fc5b0accf 100644 --- a/src/common/compat_libevent.c +++ b/src/common/compat_libevent.c @@ -54,7 +54,9 @@ typedef uint32_t le_version_t; * it is. */ #define LE_OTHER V(0,0,99) +#if 0 static le_version_t tor_get_libevent_version(const char **v_out); +#endif #if defined(HAVE_EVENT_SET_LOG_CALLBACK) || defined(RUNNING_DOXYGEN) /** A string which, if it appears in a libevent log, should be ignored. */ @@ -364,6 +366,7 @@ le_versions_compatibility(le_version_t v) return 5; } +#if 0 /** Return the version number of the currently running version of Libevent. * See le_version_t for info on the format. */ @@ -386,6 +389,7 @@ tor_get_libevent_version(const char **v_out) *v_out = v; return r; } +#endif /** Return a string representation of the version of the currently running * version of Libevent. */ @@ -408,13 +412,11 @@ tor_check_libevent_version(const char *m, int server, const char **badness_out) { int thread_unsafe = 0; - le_version_t version; const char *v = NULL; const char *badness = NULL; const char *sad_os = ""; (void) m; - - version = tor_get_libevent_version(&v); + (void) server; /* Libevent versions before 1.3b do very badly on operating systems with * user-space threading implementations. */ |