diff options
| author | acdenisSK <[email protected]> | 2017-07-11 22:13:57 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-11 22:13:57 +0200 |
| commit | ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 (patch) | |
| tree | 1eeee881705d8721cdb4238461e5422043a63ca1 /src/client | |
| parent | Add a way to add multiple fields at once (diff) | |
| download | serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.tar.xz serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.zip | |
Remove the deprecated functions
It's already been enough time for people to migrate
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 5a8bc51..4ffbf3f 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -221,24 +221,6 @@ impl<H: EventHandler + Send + Sync + 'static> Client<H> { init_client(token, handler) } - /// Alias of [`new`]. - /// - /// [`new`]: #method.new - #[deprecated(since="0.1.5", note="Use `new` instead")] - #[inline(always)] - pub fn login_bot(token: &str, handler: H) -> Self { - Self::new(token, handler) - } - - /// Alias for [`new`]. - /// - /// [`new`]: #method.new - #[deprecated(since="0.2.1", note="Use `new` instead")] - #[inline(always)] - pub fn login(token: &str, handler: H) -> Self { - Self::new(token, handler) - } - /// Sets a framework to be used with the client. All message events will be /// passed through the framework _after_ being passed to the [`on_message`] /// event handler. |