Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit b8ff432

Browse files
committed
actually unused
1 parent c3925d5 commit b8ff432

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/handler/ConnectionThrottler.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@
99

1010
public class ConnectionThrottler {
1111

12-
private final HttpSession server;
13-
1412
private final Predicate<HttpExchange> contributeToLimit;
1513
private final AtomicInteger connections = new AtomicInteger(0);
1614

1715
private int maxConnections = 0;
1816

1917
public ConnectionThrottler(final HttpSession server){
20-
this.server = server;
2118
contributeToLimit = (exchange) -> true;
2219
}
2320

2421
public ConnectionThrottler(final HttpSession server, final Predicate<HttpExchange> counts){
25-
this.server = server;
2622
this.contributeToLimit = counts;
2723
}
2824

0 commit comments

Comments
 (0)