aboutsummaryrefslogtreecommitdiff
path: root/src/model/mod.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-05-14 21:35:59 -0700
committerZeyla Hellyer <[email protected]>2017-05-22 16:44:46 -0700
commita0a933eb324fda96aedd1dfe2fbbcb10fa5190f5 (patch)
treed18ea1a1bdab9768b13c509920416d893b0016df /src/model/mod.rs
parentAdd `Invite::url()`, `RichInvite::url()` (diff)
downloadserenity-a0a933eb324fda96aedd1dfe2fbbcb10fa5190f5.tar.xz
serenity-a0a933eb324fda96aedd1dfe2fbbcb10fa5190f5.zip
Remove more remaining selfbot support
We removed these a long time ago, and these were missed.
Diffstat (limited to 'src/model/mod.rs')
-rw-r--r--src/model/mod.rs33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs
index e51970d..3f1a508 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -124,39 +124,6 @@ pub enum GuildContainer {
Id(GuildId),
}
-/// Denotes the target for a search.
-///
-/// This can be either a [`Guild`] - which can search multiple [`Channel`]s -
-/// or a `Channel`.
-///
-/// [`Channel`]: enum.Channel.html
-/// [`Guild`]: struct.Guild.html
-#[derive(Copy, Clone, Debug)]
-pub enum SearchTarget {
- /// An indicator that the target for a [`Search`] is a [`Channel`].
- ///
- /// [`Channel`]: enum.Channel.html
- /// [`Search`]: struct.Search.html
- Channel(ChannelId),
- /// An indicator that the target for a [`Search`] is a [`Guild`].
- ///
- /// [`Guild`]: struct.Guild.html
- /// [`Search`]: struct.Search.html
- Guild(GuildId),
-}
-
-impl From<ChannelId> for SearchTarget {
- fn from(channel_id: ChannelId) -> SearchTarget {
- SearchTarget::Channel(channel_id)
- }
-}
-
-impl From<GuildId> for SearchTarget {
- fn from(guild_id: GuildId) -> SearchTarget {
- SearchTarget::Guild(guild_id)
- }
-}
-
/// Information about a user's application. An application does not necessarily
/// have an associated bot user.
#[derive(Clone, Debug, Deserialize)]