aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-23 12:16:06 -0800
committerAustin Hellyer <[email protected]>2017-01-23 12:16:06 -0800
commit651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0 (patch)
treedcf452e8fe73411af331678a769cb769a32dd12e /src/utils
parentFix no-framework compilation (diff)
downloadserenity-651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0.tar.xz
serenity-651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0.zip
Switch to a mostly-fully OOP approach
The context is now strictly in relation to the context of the current channel related to the event, if any. See Context::say for a list of events that the context can be used for.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/macros.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/utils/macros.rs b/src/utils/macros.rs
index e4aaa14..484638f 100644
--- a/src/utils/macros.rs
+++ b/src/utils/macros.rs
@@ -94,25 +94,6 @@ macro_rules! feature_framework {
}
}
-// Enable/disable check for methods
-#[cfg(feature="methods")]
-macro_rules! feature_methods {
- ($enabled:block else $disabled:block) => {
- {
- $enabled
- }
- }
-}
-
-#[cfg(not(feature="methods"))]
-macro_rules! feature_methods {
- ($enabled:block else $disabled:block) => {
- {
- $disabled
- }
- }
-}
-
// Enable/disable check for voice
#[cfg(feature="voice")]
macro_rules! feature_voice {