mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-26 06:57:43 +02:00
remove unused code
This commit is contained in:
23
src/app.rs
23
src/app.rs
@ -54,12 +54,6 @@ impl App<PayloadStream, AppChain> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for App<PayloadStream, AppChain> {
|
||||
fn default() -> Self {
|
||||
App::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<P, T> App<P, T>
|
||||
where
|
||||
P: 'static,
|
||||
@ -249,23 +243,6 @@ where
|
||||
_t: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
/// Complete applicatin chain configuration and start resource
|
||||
/// configuration.
|
||||
pub fn router<B>(self) -> AppRouter<T, P, B, AppEntry<P>> {
|
||||
let fref = Rc::new(RefCell::new(None));
|
||||
AppRouter {
|
||||
chain: self.chain,
|
||||
services: Vec::new(),
|
||||
default: None,
|
||||
defaults: Vec::new(),
|
||||
endpoint: AppEntry::new(fref.clone()),
|
||||
factory_ref: fref,
|
||||
extensions: self.extensions,
|
||||
state: self.state,
|
||||
_t: PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Structure that follows the builder pattern for building application
|
||||
|
Reference in New Issue
Block a user