]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused if_ok! macro
authorKeegan McAllister <kmcallister@mozilla.com>
Wed, 10 Dec 2014 02:34:22 +0000 (18:34 -0800)
committerKeegan McAllister <kmcallister@mozilla.com>
Mon, 5 Jan 2015 19:38:12 +0000 (11:38 -0800)
src/librustc_borrowck/borrowck/mod.rs

index 75545634b40cf689a72597e9d339ba37e6bdadf0..fd46a035537719ec8e7e58dfd64e2ce63b6f08f1 100644 (file)
 use syntax::visit::{Visitor, FnKind};
 use syntax::ast::{FnDecl, Block, NodeId};
 
-macro_rules! if_ok {
-    ($inp: expr) => (
-        match $inp {
-            Ok(v) => { v }
-            Err(e) => { return Err(e); }
-        }
-    )
-}
-
 pub mod doc;
 
 pub mod check_loans;