Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Feb 4, 2021
1 parent 33b3feb commit bd6f861
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions kas-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ mod window;

use std::cell::RefCell;
use std::rc::Rc;
use std::{error, fmt};
use thiserror::Error;

use kas::event::UpdateHandle;
Expand Down Expand Up @@ -73,30 +72,6 @@ impl From<wgpu::RequestDeviceError> for Error {
}
}

// impl From<Box<dyn std::error::Error>> for Error {
// fn from(e: Box<dyn std::error::Error>) -> Self {
// Error::Other(e)
// }
// }

// impl fmt::Display for Error {
// fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
// match self {
// Error::NoAdapter => write!(f, "no suitable graphics adapter found"),
// Error::Window(e) => write!(f, "window creation error: {}", e),
// Error::Other(e) => e.fmt(f),
// }
// }
// }

// impl error::Error for Error {}

// impl From<OsError> for Error {
// fn from(ose: OsError) -> Self {
// Error::Window(ose)
// }
// }

/// A toolkit over winit and WebGPU
///
/// All KAS shells are expected to provide a similar `Toolkit` type and API.
Expand Down

0 comments on commit bd6f861

Please sign in to comment.