Two minor cleanups in the stats code.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 16 Aug 2013 00:07:19 +0000 (02:07 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 16 Aug 2013 00:07:19 +0000 (02:07 +0200)
httpinput.cpp
input_stats.cpp

index 688f321..1bd14de 100644 (file)
@@ -51,8 +51,6 @@ HTTPInput::HTTPInput(const InputProto &serialized)
          has_metacube_header(serialized.has_metacube_header()),
          sock(serialized.sock())
 {
-       pthread_mutex_init(&stats_mutex, NULL);
-
        pending_data.resize(serialized.pending_data().size());
        memcpy(&pending_data[0], serialized.pending_data().data(), serialized.pending_data().size());
 
index ce38414..1edfbde 100644 (file)
@@ -27,7 +27,6 @@ void InputStatsThread::do_work()
        while (!should_stop()) {
                int fd;
                FILE *fp;
-               vector<ClientStats> client_stats;
 
                // Open a new, temporary file.
                char *filename = strdup((stats_file + ".new.XXXXXX").c_str());