diff options
author | asonix <asonix@asonix.dog> | 2020-04-20 13:09:10 -0500 |
---|---|---|
committer | asonix <asonix@asonix.dog> | 2020-04-20 13:09:10 -0500 |
commit | 05b961a90a2b049f391fec7a78aa9fb4db6c3ed2 (patch) | |
tree | 26b183f60eb01ef601c6169de600f5bd2af56059 /server | |
parent | d11af012fc1ba2de7684235ef92bf5954a5dab26 (diff) |
Remove unused methods
Diffstat (limited to 'server')
-rw-r--r-- | server/src/rate_limit/rate_limiter.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/server/src/rate_limit/rate_limiter.rs b/server/src/rate_limit/rate_limiter.rs index 8f598c3d..926e0989 100644 --- a/server/src/rate_limit/rate_limiter.rs +++ b/server/src/rate_limit/rate_limiter.rs @@ -48,36 +48,6 @@ impl RateLimiter { } } - pub fn check_rate_limit_register(&mut self, ip: &str, check_only: bool) -> Result<(), Error> { - self.check_rate_limit_full( - RateLimitType::Register, - ip, - Settings::get().rate_limit.register, - Settings::get().rate_limit.register_per_second, - check_only, - ) - } - - pub fn check_rate_limit_post(&mut self, ip: &str, check_only: bool) -> Result<(), Error> { - self.check_rate_limit_full( - RateLimitType::Post, - ip, - Settings::get().rate_limit.post, - Settings::get().rate_limit.post_per_second, - check_only, - ) - } - - pub fn check_rate_limit_message(&mut self, ip: &str, check_only: bool) -> Result<(), Error> { - self.check_rate_limit_full( - RateLimitType::Message, - ip, - Settings::get().rate_limit.message, - Settings::get().rate_limit.message_per_second, - check_only, - ) - } - #[allow(clippy::float_cmp)] pub(super) fn check_rate_limit_full( &mut self, |