From ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Tue, 11 Jul 2017 22:13:57 +0200 Subject: Remove the deprecated functions It's already been enough time for people to migrate --- src/cache/mod.rs | 67 -------------------------------------------------------- 1 file changed, 67 deletions(-) (limited to 'src/cache') diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 22be025..a583e8c 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -590,73 +590,6 @@ impl Cache { self.users.get(&user_id.into()).cloned() } - /// Alias of [`channel`]. - /// - /// [`channel`]: #method.channel - #[deprecated(since="0.1.5", note="Use `channel` instead.")] - #[inline] - pub fn get_channel>(&self, id: C) -> Option { - self.channel(id) - } - - /// Alias of [`guild`]. - /// - /// [`guild`]: #method.guild - #[deprecated(since="0.1.5", note="Use `guild` instead.")] - #[inline] - pub fn get_guild>(&self, id: G) -> Option>> { - self.guild(id) - } - - /// Alias of [`guild_channel`]. - /// - /// [`guild_channel`]: #method.guild_channel - #[deprecated(since="0.1.5", note="Use `guild_channel` instead.")] - #[inline] - pub fn get_guild_channel>(&self, id: C) - -> Option>> { - self.guild_channel(id) - } - - /// Alias of [`member`]. - /// - /// [`member`]: #method.member - #[deprecated(since="0.1.5", note="Use `member` instead.")] - #[inline] - pub fn get_member(&self, guild_id: G, user_id: U) -> Option - where G: Into, U: Into { - self.member(guild_id, user_id) - } - - /// Alias of [`private_channel`]. - /// - /// [`private_channel`]: #method.private_channel - #[deprecated(since="0.1.5", note="Use `private_channel` instead.")] - #[inline] - pub fn get_private_channel>(&self, id: C) - -> Option>> { - self.private_channel(id) - } - - /// Alias of [`role`]. - /// - /// [`role`]: #method.role - #[deprecated(since="0.1.5", note="Use `role` instead.")] - #[inline] - pub fn get_role(&self, guild_id: G, role_id: R) -> Option - where G: Into, R: Into { - self.role(guild_id, role_id) - } - - /// Alias of [`user`]. - /// - /// [`user`]: #method.user - #[deprecated(since="0.1.5", note="Use `user` instead.")] - #[inline] - pub fn get_user>(&self, id: U) -> Option>> { - self.user(id) - } - pub(crate) fn update_with_channel_create(&mut self, event: &ChannelCreateEvent) -> Option { match event.channel { Channel::Group(ref group) => { -- cgit v1.2.3