diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-04-19 11:29:29 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-04-19 11:29:29 +0200 |
commit | f81a430c6daa75368234fd40e75990020738a117 (patch) | |
tree | f9b82e23a635700246193de6a659948bf1c1bd29 /src | |
parent | b1311c984df54a5a7eacc77c29093502db814cd0 (diff) | |
parent | 1ec168fed06893e2d8f5c7fc4355103ab979edf6 (diff) | |
download | glutin-f81a430c6daa75368234fd40e75990020738a117.tar.gz glutin-f81a430c6daa75368234fd40e75990020738a117.zip |
Merge pull request #383 from tomaka/remove-deprecated
Remove functions marked as #[deprecated]
Diffstat (limited to 'src')
-rw-r--r-- | src/headless.rs | 7 | ||||
-rw-r--r-- | src/window.rs | 14 |
2 files changed, 0 insertions, 21 deletions
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 dee4ce5..0dd9905 100644 --- a/src/window.rs +++ b/src/window.rs @@ -60,13 +60,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; @@ -217,13 +210,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. |