diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-21 10:57:30 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-09-21 12:03:58 +0200 |
commit | 932e565391ea6004714ff74e006637ad29961b06 (patch) | |
tree | 4bda1ea70ba94894bc601c3c7138e016b0062df0 /src | |
parent | 1b836f60406e347967404c52913fb244c9ee424e (diff) | |
download | glutin-932e565391ea6004714ff74e006637ad29961b06.tar.gz glutin-932e565391ea6004714ff74e006637ad29961b06.zip |
Remove extract_non_static
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -389,28 +389,6 @@ impl BuilderAttribs<'static> { } impl<'a> BuilderAttribs<'a> { - #[allow(dead_code)] - fn extract_non_static(mut self) -> (BuilderAttribs<'static>, Option<&'a platform::Window>) { - let sharing = self.opengl.sharing.take(); - - let new_attribs = BuilderAttribs { - headless: self.headless, - strict: self.strict, - pf_reqs: self.pf_reqs, - window: self.window, - opengl: GlAttributes { - sharing: None, - version: self.opengl.version, - profile: self.opengl.profile, - debug: self.opengl.debug, - robustness: self.opengl.robustness, - vsync: self.opengl.vsync, - }, - }; - - (new_attribs, sharing) - } - fn choose_pixel_format<T, I>(&self, iter: I) -> Result<(T, PixelFormat), CreationError> where I: IntoIterator<Item=(T, PixelFormat)>, T: Clone { |