summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-03 00:27:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:20 +0100
commitae3e4ce238099dc43d3e013760195903142c1028 (patch)
treedd6ccf6ce67667bf891a41587ee61a35a578f745 /tracker-wii
parentd605ba28c0aa051384273941fa238a9174321a6d (diff)
tracker/wii: remove unused variable
Diffstat (limited to 'tracker-wii')
-rw-r--r--tracker-wii/wii_camera.cpp16
-rw-r--r--tracker-wii/wii_camera.h1
2 files changed, 6 insertions, 11 deletions
diff --git a/tracker-wii/wii_camera.cpp b/tracker-wii/wii_camera.cpp
index da998ecf..a393b843 100644
--- a/tracker-wii/wii_camera.cpp
+++ b/tracker-wii/wii_camera.cpp
@@ -108,17 +108,13 @@ bool WIICamera::start(int, int, int, int)
void WIICamera::stop()
{
- onExit = true;
- m_pDev->ChangedCallback = nullptr;
- m_pDev->Disconnect();
- Beep(1000, 200);
- if (m_pDev) {
- m_pDev=nullptr;
- m_pDev = nullptr;
- }
+ m_pDev->ChangedCallback = nullptr;
+ m_pDev->Disconnect();
+ Beep(1000, 200);
+ m_pDev = nullptr;
- cam_info = pt_camera_info();
- cam_desired = pt_camera_info();
+ cam_info = {};
+ cam_desired = {};
}
wii_camera_status WIICamera::pair()
diff --git a/tracker-wii/wii_camera.h b/tracker-wii/wii_camera.h
index 14cb55df..729ad6c2 100644
--- a/tracker-wii/wii_camera.h
+++ b/tracker-wii/wii_camera.h
@@ -61,7 +61,6 @@ private:
struct { float p = 0, r = 0; } horizon;
pt_settings s;
- bool onExit = false;
};
} // ns pt_module