Skip to content

Commit

Permalink
reading_thread: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingflo committed Aug 5, 2016
1 parent 9b9f1c9 commit 31a5325
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/threads.cpp
Expand Up @@ -97,7 +97,6 @@ void * reading_thread(void *arg) {
/* insert readings into channel queues */
if (n>0)
for (MeterMap::iterator ch = mapping->begin(); ch!=mapping->end(); ch++) {
Reading *add = NULL;

//print(log_debug, "Check channel %s, n=%d", mtr->name(), ch->name(), n);

Expand All @@ -118,10 +117,6 @@ void * reading_thread(void *arg) {
pushDataList->add(uuid, rds[i].time_ms(), rds[i].value());
print(log_finest, "added to uuid %s", "push", uuid.c_str());
}

if (add == NULL) {
add = &rds[i]; /* remember first reading which has been added to the buffer */
}
}
}

Expand Down

0 comments on commit 31a5325

Please sign in to comment.