aboutsummaryrefslogtreecommitdiff
path: root/src/cache
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-11 22:13:57 +0200
committeracdenisSK <[email protected]>2017-07-11 22:13:57 +0200
commitebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 (patch)
tree1eeee881705d8721cdb4238461e5422043a63ca1 /src/cache
parentAdd a way to add multiple fields at once (diff)
downloadserenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.tar.xz
serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.zip
Remove the deprecated functions
It's already been enough time for people to migrate
Diffstat (limited to 'src/cache')
-rw-r--r--src/cache/mod.rs67
1 files changed, 0 insertions, 67 deletions
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<C: Into<ChannelId>>(&self, id: C) -> Option<Channel> {
- self.channel(id)
- }
-
- /// Alias of [`guild`].
- ///
- /// [`guild`]: #method.guild
- #[deprecated(since="0.1.5", note="Use `guild` instead.")]
- #[inline]
- pub fn get_guild<G: Into<GuildId>>(&self, id: G) -> Option<Arc<RwLock<Guild>>> {
- 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<C: Into<ChannelId>>(&self, id: C)
- -> Option<Arc<RwLock<GuildChannel>>> {
- self.guild_channel(id)
- }
-
- /// Alias of [`member`].
- ///
- /// [`member`]: #method.member
- #[deprecated(since="0.1.5", note="Use `member` instead.")]
- #[inline]
- pub fn get_member<G, U>(&self, guild_id: G, user_id: U) -> Option<Member>
- where G: Into<GuildId>, U: Into<UserId> {
- 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<C: Into<ChannelId>>(&self, id: C)
- -> Option<Arc<RwLock<PrivateChannel>>> {
- self.private_channel(id)
- }
-
- /// Alias of [`role`].
- ///
- /// [`role`]: #method.role
- #[deprecated(since="0.1.5", note="Use `role` instead.")]
- #[inline]
- pub fn get_role<G, R>(&self, guild_id: G, role_id: R) -> Option<Role>
- where G: Into<GuildId>, R: Into<RoleId> {
- 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<U: Into<UserId>>(&self, id: U) -> Option<Arc<RwLock<User>>> {
- self.user(id)
- }
-
pub(crate) fn update_with_channel_create(&mut self, event: &ChannelCreateEvent) -> Option<Channel> {
match event.channel {
Channel::Group(ref group) => {