aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-29 11:49:28 -0800
committerAustin Hellyer <[email protected]>2016-12-29 11:49:28 -0800
commitfa4952b30fec8f62c9882c2c9ef9836eae2cd9a9 (patch)
treecae13f61f6634183ff73c24703c66d57b6b1d8e8 /src/utils
parentAdd user static avatar url methods (diff)
downloadserenity-fa4952b30fec8f62c9882c2c9ef9836eae2cd9a9.tar.xz
serenity-fa4952b30fec8f62c9882c2c9ef9836eae2cd9a9.zip
Use conditional blocks over macros
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/macros.rs112
1 files changed, 0 insertions, 112 deletions
diff --git a/src/utils/macros.rs b/src/utils/macros.rs
index 2f2ebdf..51e016d 100644
--- a/src/utils/macros.rs
+++ b/src/utils/macros.rs
@@ -62,34 +62,6 @@ macro_rules! feature_cache {
}
}
-#[cfg(feature="cache")]
-macro_rules! feature_cache_enabled {
- ($enabled:block) => {
- {
- $enabled
- }
- }
-}
-
-#[cfg(not(feature="cache"))]
-macro_rules! feature_cache_enabled {
- ($enabled:block) => {{}}
-}
-
-#[cfg(feature="cache")]
-macro_rules! feature_cache_disabled {
- ($disabled:block) => {{}}
-}
-
-#[cfg(not(feature="cache"))]
-macro_rules! feature_cache_disabled {
- ($disabled:block) => {
- {
- $disabled
- }
- }
-}
-
// Enable/disable check for framework
#[cfg(feature="framework")]
macro_rules! feature_framework {
@@ -109,34 +81,6 @@ macro_rules! feature_framework {
}
}
-#[cfg(feature="framework")]
-macro_rules! feature_framework_enabled {
- ($enabled:block) => {
- {
- $enabled
- }
- }
-}
-
-#[cfg(not(feature="framework"))]
-macro_rules! feature_framework_enabled {
- ($enabled:block) => {{}}
-}
-
-#[cfg(feature="framework")]
-macro_rules! feature_framework_disabled {
- ($disabled:block) => {{}}
-}
-
-#[cfg(not(feature="framework"))]
-macro_rules! feature_framework_disabled {
- ($disabled:block) => {
- {
- $disabled
- }
- }
-}
-
// Enable/disable check for methods
#[cfg(feature="methods")]
macro_rules! feature_methods {
@@ -156,34 +100,6 @@ macro_rules! feature_methods {
}
}
-#[cfg(feature="methods")]
-macro_rules! feature_methods_enabled {
- ($enabled:block) => {
- {
- $enabled
- }
- }
-}
-
-#[cfg(not(feature="methods"))]
-macro_rules! feature_methods_enabled {
- ($enabled:block) => {{}}
-}
-
-#[cfg(feature="methods")]
-macro_rules! feature_methods_disabled {
- ($disabled:block) => {{}}
-}
-
-#[cfg(not(feature="methods"))]
-macro_rules! feature_methods_disabled {
- ($disabled:block) => {
- {
- $disabled
- }
- }
-}
-
// Enable/disable check for voice
#[cfg(feature="voice")]
macro_rules! feature_voice {
@@ -202,31 +118,3 @@ macro_rules! feature_voice {
}
}
}
-
-#[cfg(feature="voice")]
-macro_rules! feature_voice_enabled {
- ($enabled:block) => {
- {
- $enabled
- }
- }
-}
-
-#[cfg(not(feature="voice"))]
-macro_rules! feature_voice_enabled {
- ($enabled:block) => {{}}
-}
-
-#[cfg(feature="voice")]
-macro_rules! feature_voice_disabled {
- ($disabled:block) => {{}}
-}
-
-#[cfg(not(feature="voice"))]
-macro_rules! feature_voice_disabled {
- ($disabled:block) => {
- {
- $disabled
- }
- }
-}