From 1ec168fed06893e2d8f5c7fc4355103ab979edf6 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sun, 19 Apr 2015 09:52:03 +0200 Subject: Remove functions marked as #[deprecated] --- src/headless.rs | 7 ------- src/window.rs | 14 -------------- 2 files changed, 21 deletions(-) (limited to 'src') diff --git a/src/headless.rs b/src/headless.rs index f3df83f..dc42108 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -25,13 +25,6 @@ impl HeadlessRendererBuilder { } } - /// THIS FUNCTION IS DEPRECATED - #[deprecated = "Use with_gl instead"] - pub fn with_gl_version(mut self, version: (u32, u32)) -> HeadlessRendererBuilder { - self.attribs.gl_version = GlRequest::Specific(::Api::OpenGl, (version.0 as u8, version.1 as u8)); - self - } - /// Sets how the backend should choose the OpenGL API and version. pub fn with_gl(mut self, request: GlRequest) -> HeadlessRendererBuilder { self.attribs.gl_version = request; diff --git a/src/window.rs b/src/window.rs index bf040b0..8567313 100644 --- a/src/window.rs +++ b/src/window.rs @@ -59,13 +59,6 @@ impl<'a> WindowBuilder<'a> { self } - /// THIS FUNCTION IS DEPRECATED - #[deprecated = "Use with_gl instead"] - pub fn with_gl_version(mut self, version: (u32, u32)) -> WindowBuilder<'a> { - self.attribs.gl_version = GlRequest::Specific(::Api::OpenGl, (version.0 as u8, version.1 as u8)); - self - } - /// Sets how the backend should choose the OpenGL API and version. pub fn with_gl(mut self, request: GlRequest) -> WindowBuilder<'a> { self.attribs.gl_version = request; @@ -216,13 +209,6 @@ impl Window { self.window.is_closed() } - /// Returns true if the window has previously been closed by the user. - #[inline] - #[deprecated = "Use is_closed instead"] - pub fn should_close(&self) -> bool { - self.is_closed() - } - /// Modifies the title of the window. /// /// This is a no-op if the window has already been closed. -- cgit v1.2.3