summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorWei Shuai <cpuwolf@gmail.com>2018-01-26 21:54:30 +0800
committerWei Shuai <cpuwolf@gmail.com>2018-01-26 21:54:30 +0800
commitd057e5db1c9ca81d5f60b9cd8001f60dd155f145 (patch)
treed0503e45acb9b0d0cfbcfe8de0a122caa8efe321 /tracker-pt
parent889a53b25b4bf79d4efc574b48266a8e8a154ee8 (diff)
tracker/wii: remove useless check
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/tracker-wii/wii_camera.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/tracker-pt/tracker-wii/wii_camera.cpp b/tracker-pt/tracker-wii/wii_camera.cpp
index 22d53fcf..75ce3950 100644
--- a/tracker-pt/tracker-wii/wii_camera.cpp
+++ b/tracker-pt/tracker-wii/wii_camera.cpp
@@ -78,11 +78,6 @@ WIICamera::result WIICamera::get_frame(pt_frame& frame_)
pt_camera_open_status WIICamera::start(int idx, int fps, int res_x, int res_y)
{
m_pDev = std::make_unique<wiimote>();
- if (!m_pDev)
- {
- stop();
- return cam_open_error;
- }
m_pDev->ChangedCallback = on_state_change;
m_pDev->CallbackTriggerFlags = (state_change_flags)(CONNECTED |
EXTENSION_CHANGED |