summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-16 10:56:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-16 10:56:18 +0200
commitdb0d8b88fb75462e260f7d2304d91f0d221b603d (patch)
tree95360512499d2789aa15e687333059f0d1c8fc5b /logic
parentd4e0a7de8dbaf1c28f9653cea27b23d35b34eef2 (diff)
logic/tracker: remove dead code
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp5
-rw-r--r--logic/tracker.h4
2 files changed, 2 insertions, 7 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 1002932f..e09000e2 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -304,9 +304,7 @@ void Tracker::logic()
for (int i = 3; i < 6; i++)
value(i) = map(value(i), m(i));
- const bool reltrans = !get(f_tcomp_disabled);
-
- if (s.tcomp_p && reltrans)
+ if (s.tcomp_p)
{
const double tcomp_c[] =
{
@@ -490,6 +488,5 @@ bits::bits() : b(0u)
set(f_center, true);
set(f_enabled, true);
set(f_zero, false);
- set(f_tcomp_disabled, false);
set(f_should_quit, false);
}
diff --git a/logic/tracker.h b/logic/tracker.h
index 2f29aca7..2e6350d7 100644
--- a/logic/tracker.h
+++ b/logic/tracker.h
@@ -39,8 +39,7 @@ struct bits
f_center = 1 << 0,
f_enabled = 1 << 1,
f_zero = 1 << 2,
- f_tcomp_disabled = 1 << 3,
- f_should_quit = 1 << 4,
+ f_should_quit = 1 << 3,
};
std::atomic<unsigned> b;
@@ -113,7 +112,6 @@ public:
void set_toggle(bool value) { set(f_enabled, value); }
void set_zero(bool value) { set(f_zero, value); }
- void set_tcomp_disabled(bool x) { set(f_tcomp_disabled, x); }
void zero() { negate(f_zero); }
void toggle_enabled() { negate(f_enabled); }