diff options
| author | Austin Hellyer <[email protected]> | 2016-11-28 17:51:58 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-28 17:51:58 -0800 |
| commit | 9ef110ec52527e0018c979b0c44a52c98dceafdb (patch) | |
| tree | e26068dcac610ee62eb6d5099d9916a8f132121d /src/model/utils.rs | |
| parent | Cargo: Don't have bins for examples (diff) | |
| download | serenity-9ef110ec52527e0018c979b0c44a52c98dceafdb.tar.xz serenity-9ef110ec52527e0018c979b0c44a52c98dceafdb.zip | |
Optimize for cached, non-method compiles
Diffstat (limited to 'src/model/utils.rs')
| -rw-r--r-- | src/model/utils.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/model/utils.rs b/src/model/utils.rs index d4ee1c3..0611a9f 100644 --- a/src/model/utils.rs +++ b/src/model/utils.rs @@ -304,13 +304,6 @@ pub fn user_has_perms(channel_id: ChannelId, Ok(permissions.is_empty()) } -#[doc(hidden)] -#[cfg(all(not(feature = "cache"), feature = "methods"))] -pub fn user_has_perms(channel_id: ChannelId, mut permissions: Permissions) - -> Result<bool> { - Ok(true) -} - pub fn warn_field(name: &str, map: BTreeMap<String, Value>) { if !map.is_empty() { debug!("Unhandled keys: {} has {:?}", name, Value::Object(map)) |