Author: toad
Date: 2009-04-21 12:01:18 +0000 (Tue, 21 Apr 2009)
New Revision: 27151

Modified:
   trunk/freenet/src/freenet/io/comm/MessageFilter.java
Log:
Revert nothing() in MessageFilter (SVN r27143, 27149), not necessary


Modified: trunk/freenet/src/freenet/io/comm/MessageFilter.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/MessageFilter.java        2009-04-21 
11:58:19 UTC (rev 27150)
+++ trunk/freenet/src/freenet/io/comm/MessageFilter.java        2009-04-21 
12:01:18 UTC (rev 27151)
@@ -51,25 +51,14 @@
     private long _oldBootID;
     private AsyncMessageFilterCallback _callback;
     private boolean _setTimeout = false;
-    private final boolean nothing; 
 
     private MessageFilter() {
         _timeoutFromWait = true;
-        nothing = false;
     }
-    
-    private MessageFilter(boolean noop) {
-        _timeoutFromWait = true;
-        this.nothing = noop; 
-    }
-    
+
     public static MessageFilter create() {
         return new MessageFilter();
     }
-    
-    public static MessageFilter nothing() {
-        return new MessageFilter(true);
-    }
 
     void onStartWaiting(boolean waitFor) {
        synchronized(this) {
@@ -190,8 +179,6 @@
                if ((_or != null) && (_or.match(m))) {
                        return true;
                }
-               if (nothing)
-                       return false;
                if ((_type != null) && (!_type.equals(m.getSpec()))) {
                        return false;
                }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to