diff --git a/Cargo.toml b/Cargo.toml index 82b5be3..fa4d795 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,6 @@ opt-level = 3 default = ["scripting", "backend-sdl", "render-opengl", "ogg-playback", "exe"] ogg-playback = ["lewton"] backend-sdl = ["sdl2", "sdl2-sys"] -#backend-sokol = ["sokol"] backend-glutin = ["winit", "glutin", "render-opengl"] render-opengl = [] scripting = ["lua-ffi"] diff --git a/src/framework/backend.rs b/src/framework/backend.rs index 2cde562..b9e6aa1 100644 --- a/src/framework/backend.rs +++ b/src/framework/backend.rs @@ -74,17 +74,13 @@ pub trait BackendTexture { fn draw(&mut self) -> GameResult; } +#[allow(unreachable_code)] pub fn init_backend() -> GameResult> { #[cfg(all(feature = "backend-glutin"))] { return crate::framework::backend_glutin::GlutinBackend::new(); } - #[cfg(feature = "backend-sokol")] - { - return crate::framework::backend_sokol::SokolBackend::new(); - } - #[cfg(feature = "backend-sdl")] { return crate::framework::backend_sdl2::SDL2Backend::new(); diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 1670f70..3fac1da 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -6,8 +6,6 @@ pub mod backend_glutin; mod gl; #[cfg(feature = "backend-sdl")] pub mod backend_sdl2; -#[cfg(feature = "backend-sokol")] -pub mod backend_sokol; pub mod context; pub mod error; pub mod filesystem;