Commit d1b0c48
committed
Remove unused rate limit methods and constants
Cleaned up unused code to eliminate compiler warnings:
- Removed unused connection_count() method
- Removed unused count_ip_requests() method
- Removed unused check_ip_connection_limit() method
- Removed unused STATUS constant
- Removed unused MAX_CONNECTIONS_PER_IP constant
Updated test_connection_limits() to work without removed methods.
Build now completes with zero warnings.
All tests still passing (3/3 in rate_limit module).1 parent a31773e commit d1b0c48
1 file changed
Lines changed: 3 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 94 | | |
115 | 95 | | |
116 | 96 | | |
| |||
160 | 140 | | |
161 | 141 | | |
162 | 142 | | |
163 | | - | |
164 | | - | |
165 | 143 | | |
166 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
167 | 147 | | |
168 | 148 | | |
0 commit comments