From 576f6d7448c7666d140d613253a8a57d0d8edf4b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 22 Oct 2013 02:45:39 +0200 Subject: ht: remove dead code Signed-off-by: Stanislaw Halik --- ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | 3 +-- ftnoir_tracker_ht/ftnoir_tracker_ht.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'ftnoir_tracker_ht') diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp index d14fa5e0..010741c6 100644 --- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp +++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp @@ -136,7 +136,7 @@ static void load_settings(ht_config_t* config, Tracker* tracker) iniFile.endGroup(); } -Tracker::Tracker() : lck_shm(HT_SHM_NAME, HT_MUTEX_NAME, sizeof(ht_shm_t)), fresh(false) +Tracker::Tracker() : lck_shm(HT_SHM_NAME, HT_MUTEX_NAME, sizeof(ht_shm_t)) { videoWidget = NULL; layout = NULL; @@ -196,7 +196,6 @@ bool Tracker::GiveHeadPoseData(double *data) { videoWidget->update_image(shm->frame.frame, shm->frame.width, shm->frame.height); //memcpy(foo, shm->frame.frame, shm->frame.width * shm->frame.height * 3); - fresh = true; shm->frame.width = 0; } if (shm->result.filled) { diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.h b/ftnoir_tracker_ht/ftnoir_tracker_ht.h index e1810232..c19e2d93 100644 --- a/ftnoir_tracker_ht/ftnoir_tracker_ht.h +++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.h @@ -31,7 +31,6 @@ private: QProcess subprocess; HTVideoWidget* videoWidget; QHBoxLayout* layout; - volatile bool fresh; }; // Widget that has controls for FTNoIR protocol client-settings. -- cgit v1.2.3