From: Steinar H. Gunderson Date: Fri, 16 Aug 2013 00:07:19 +0000 (+0200) Subject: Two minor cleanups in the stats code. X-Git-Tag: 1.0.0~23 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=d4bc12548cd825607e257cbe01f3136ed524cb10 Two minor cleanups in the stats code. --- diff --git a/httpinput.cpp b/httpinput.cpp index 688f321..1bd14de 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -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()); diff --git a/input_stats.cpp b/input_stats.cpp index ce38414..1edfbde 100644 --- a/input_stats.cpp +++ b/input_stats.cpp @@ -27,7 +27,6 @@ void InputStatsThread::do_work() while (!should_stop()) { int fd; FILE *fp; - vector client_stats; // Open a new, temporary file. char *filename = strdup((stats_file + ".new.XXXXXX").c_str());