From 4ccae8bc10e596a15393a3b3c033ac0471d317c0 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Fri, 13 Apr 2018 13:45:30 +0000 Subject: [PATCH] Revert "imgui: Add get_window_width, get_window_height helper functions" This reverts commit 0d10358942409cf8fad6fcb730dbedfbd7149df7. `get_window_size` already exists and it's very easy to get just one of the dimentions. As a result, delete get_window_width and get_window_height. --- src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bbc23d2..7bee4ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -392,18 +392,6 @@ impl<'ui> Ui<'ui> { } (out.x, out.y) } - /// Get current window's width in pixels - pub fn get_window_width(&self) -> f32 { - unsafe { - sys::igGetWindowWidth() - } - } - /// Get current window's height in pixels - pub fn get_window_height(&self) -> f32 { - unsafe { - sys::igGetWindowHeight() - } - } } // Layout