mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Merge pull request #383 from tomaka/remove-deprecated
Remove functions marked as #[deprecated]
This commit is contained in:
commit
f81a430c6d
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue