From 2829286b5b4d2eb37c74f214283a60687ab833c5 Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Thu, 31 Oct 2019 11:01:14 +0200
Subject: [PATCH] missing return, removed debug messages

---
 applications/gui/src/screen.cpp | 5 +----
 applications/gui/src/screen.hpp | 3 ---
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/applications/gui/src/screen.cpp b/applications/gui/src/screen.cpp
index 76d727a99..a9f4cc023 100644
--- a/applications/gui/src/screen.cpp
+++ b/applications/gui/src/screen.cpp
@@ -298,12 +298,9 @@ bool ftl::gui::Screen::initVR() {
 	{
 		HMD_ = nullptr;
 		LOG(ERROR) << "Unable to init VR runtime: " << vr::VR_GetVRInitErrorAsEnglishDescription(eError);
+		return false;
 	}
 
-	uint32_t size_x, size_y;
-	HMD_->GetRecommendedRenderTargetSize(&size_x, &size_y);
-	LOG(INFO) << size_x << ", " << size_y;
-	LOG(INFO) << "\n" << getCameraMatrix(HMD_, vr::Eye_Left);
 	return true;
 }
 
diff --git a/applications/gui/src/screen.hpp b/applications/gui/src/screen.hpp
index b78ad8b69..a0ac39d06 100644
--- a/applications/gui/src/screen.hpp
+++ b/applications/gui/src/screen.hpp
@@ -62,9 +62,6 @@ class Screen : public nanogui::Screen {
 	bool hasVR() const { return false; }
 #endif
 
-	void setDualView(bool v) { show_two_images_ = v; LOG(INFO) << "CLICK"; }
-	bool getDualView() { return show_two_images_; }
-
 	nanogui::Theme *windowtheme;
 	nanogui::Theme *specialtheme;
 	nanogui::Theme *mediatheme;
-- 
GitLab