From 9b36a40a28b4148d598f0e8e924bebd5ca031722 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 20 Jan 2009 12:54:19 +0000 Subject: [PATCH] Forgot to remove main() ... :-( --- .../netty/handler/timeout/HashedWheelTimer.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/timeout/HashedWheelTimer.java b/src/main/java/org/jboss/netty/handler/timeout/HashedWheelTimer.java index fcbdc32a3c..4eaf0da6c1 100644 --- a/src/main/java/org/jboss/netty/handler/timeout/HashedWheelTimer.java +++ b/src/main/java/org/jboss/netty/handler/timeout/HashedWheelTimer.java @@ -526,16 +526,4 @@ public class HashedWheelTimer implements Timer { return buf.append(')').toString(); } } - - public static void main(String[] args) throws Exception { - Timer timer = new HashedWheelTimer(); - for (int i = 0; i < 100000; i ++) { - timer.newTimeout(new TimerTask() { - public void run(Timeout timeout) throws Exception { - // Extend another second. - timeout.extend(); - } - }, 1000, TimeUnit.MILLISECONDS); - } - } }