Skip to content

Commit 4683b8a

Browse files
committed
Removed unused macro.
1 parent 0edb1d0 commit 4683b8a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/conduit-router.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ pub struct RouteBuilder {
1515
routers: HashMap<Method, Router<Box<Handler + Send + Share>>>
1616
}
1717

18-
macro_rules! method_map(
19-
($method:ident => $variant:ty) => (
20-
pub fn $method<'a, H: Handler>(&'a mut self, pattern: &str, handler: H)
21-
-> &'a mut RouteBuilder
22-
{
23-
self.map(conduit::$variant, pattern, handler)
24-
}
25-
)
26-
)
27-
2818
impl RouteBuilder {
2919
pub fn new() -> RouteBuilder {
3020
RouteBuilder { routers: HashMap::new() }
@@ -115,8 +105,6 @@ impl<'a> RequestParams<'a> for &'a mut Request {
115105
}
116106
}
117107

118-
//impl<T: Request> RequestParams for T {}
119-
120108
#[cfg(test)]
121109
mod tests {
122110
extern crate semver;

0 commit comments

Comments
 (0)