]> git.sesse.net Git - cubemap/commitdiff
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 688f321744ff5084d9f03da33e0e76ebae5eb76c..1bd14dee87c7d022de1bea1d128059f43428aa8c 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 ce3841469c3ee0f92dcd06c9951cd611e75d0629..1edfbde52379b062407dfd8e31804e51733ef64a 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());