aboutsummaryrefslogtreecommitdiff
path: root/src/model/utils.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-03-25 19:24:19 -0700
committerZeyla Hellyer <[email protected]>2018-03-25 19:24:19 -0700
commit461ebe03d58d1ec78ed5addb65e688d63ecfcf45 (patch)
tree84475e0717d089551b7e615cdf7d2cfcbff32d57 /src/model/utils.rs
parentRewrite the library to use Futures (diff)
downloadserenity-461ebe03d58d1ec78ed5addb65e688d63ecfcf45.tar.xz
serenity-461ebe03d58d1ec78ed5addb65e688d63ecfcf45.zip
Remove cache/http methods on structs
Diffstat (limited to 'src/model/utils.rs')
-rw-r--r--src/model/utils.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/model/utils.rs b/src/model/utils.rs
index 9ed34e1..f18f19a 100644
--- a/src/model/utils.rs
+++ b/src/model/utils.rs
@@ -258,17 +258,6 @@ impl PermissionCheck for Cache {
}
}
-macro_rules! ftryopt {
- ($code:expr) => {
- match $code {
- Some(ref v) => v,
- None => return Box::new(::futures::future::err(::Error::Model(
- ::model::ModelError::ClientNotPresent,
- ))),
- }
- };
-}
-
macro_rules! num_visitors {
($($visitor:ident: $type:ty),*) => {
$(