Skip to content

Commit

Permalink
Remove unused macro definition
Browse files Browse the repository at this point in the history
  • Loading branch information
vrinek authored and Cobrand committed Nov 9, 2017
1 parent 4c5819d commit 58989c9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions examples/gfx-demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ use sdl2::gfx::primitives::DrawRenderer;
const SCREEN_WIDTH: u32 = 800;
const SCREEN_HEIGHT: u32 = 600;

// hadle the annoying Rect i32
macro_rules! rect(
($x:expr, $y:expr, $w:expr, $h:expr) => (
sdl2::rect::Rect::new($x as i32, $y as i32, $w as i32, $h as i32)
)
);

fn main() {
let sdl_context = sdl2::init().unwrap();
let video_subsys = sdl_context.video().unwrap();
Expand Down

0 comments on commit 58989c9

Please sign in to comment.