Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 3, 2019
1 parent 115b30d commit b320dc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
- rust: nightly-2019-03-02
allow_failures:
- rust: nightly

Expand All @@ -24,6 +24,11 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -y openssl libssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev

before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin -f
fi
# Add clippy
before_script:
- export PATH=$PATH:~/.cargo/bin
Expand Down
23 changes: 0 additions & 23 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b320dc1

Please sign in to comment.