remove unused logs

This commit is contained in:
zzz
2009-12-15 01:44:20 +00:00
parent e07e329c26
commit e16227211f
25 changed files with 18 additions and 71 deletions

View File

@ -16,7 +16,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.DataStructureImpl; import net.i2p.data.DataStructureImpl;
import net.i2p.util.Log;
/** /**
* Defines the structure for why abuse was reported either by the client to * Defines the structure for why abuse was reported either by the client to
@ -25,7 +24,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class AbuseReason extends DataStructureImpl { public class AbuseReason extends DataStructureImpl {
private final static Log _log = new Log(AbuseReason.class);
private String _reason; private String _reason;
public AbuseReason() { public AbuseReason() {
@ -64,4 +62,4 @@ public class AbuseReason extends DataStructureImpl {
public String toString() { public String toString() {
return "[AbuseReason: " + getReason() + "]"; return "[AbuseReason: " + getReason() + "]";
} }
} }

View File

@ -16,7 +16,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.DataStructureImpl; import net.i2p.data.DataStructureImpl;
import net.i2p.util.Log;
/** /**
* Provides a severity level (larger numbers are more severe) in association with * Provides a severity level (larger numbers are more severe) in association with
@ -26,7 +25,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class AbuseSeverity extends DataStructureImpl { public class AbuseSeverity extends DataStructureImpl {
private final static Log _log = new Log(AbuseSeverity.class);
private int _severityId; private int _severityId;
public AbuseSeverity() { public AbuseSeverity() {
@ -65,4 +63,4 @@ public class AbuseSeverity extends DataStructureImpl {
public String toString() { public String toString() {
return "[AbuseSeverity: " + getSeverity() + "]"; return "[AbuseSeverity: " + getSeverity() + "]";
} }
} }

View File

@ -11,7 +11,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Tell the other side the limits * Tell the other side the limits
@ -19,7 +18,6 @@ import net.i2p.util.Log;
* @author zzz * @author zzz
*/ */
public class BandwidthLimitsMessage extends I2CPMessageImpl { public class BandwidthLimitsMessage extends I2CPMessageImpl {
private final static Log _log = new Log(BandwidthLimitsMessage.class);
public final static int MESSAGE_TYPE = 23; public final static int MESSAGE_TYPE = 23;
private static final int LIMITS = 16; private static final int LIMITS = 16;
private int[] data; private int[] data;

View File

@ -18,7 +18,6 @@ import net.i2p.data.DataHelper;
import net.i2p.data.LeaseSet; import net.i2p.data.LeaseSet;
import net.i2p.data.PrivateKey; import net.i2p.data.PrivateKey;
import net.i2p.data.SigningPrivateKey; import net.i2p.data.SigningPrivateKey;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when authorizing * Defines the message a client sends to a router when authorizing
@ -27,7 +26,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class CreateLeaseSetMessage extends I2CPMessageImpl { public class CreateLeaseSetMessage extends I2CPMessageImpl {
private final static Log _log = new Log(CreateLeaseSetMessage.class);
public final static int MESSAGE_TYPE = 4; public final static int MESSAGE_TYPE = 4;
private SessionId _sessionId; private SessionId _sessionId;
private LeaseSet _leaseSet; private LeaseSet _leaseSet;
@ -138,4 +136,4 @@ public class CreateLeaseSetMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -15,7 +15,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when establishing a new * Defines the message a client sends to a router when establishing a new
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class CreateSessionMessage extends I2CPMessageImpl { public class CreateSessionMessage extends I2CPMessageImpl {
private final static Log _log = new Log(CreateSessionMessage.class);
public final static int MESSAGE_TYPE = 1; public final static int MESSAGE_TYPE = 1;
private SessionConfig _sessionConfig; private SessionConfig _sessionConfig;
@ -91,4 +89,4 @@ public class CreateSessionMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -15,7 +15,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when destroying * Defines the message a client sends to a router when destroying
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class DestroySessionMessage extends I2CPMessageImpl { public class DestroySessionMessage extends I2CPMessageImpl {
private final static Log _log = new Log(DestroySessionMessage.class);
public final static int MESSAGE_TYPE = 3; public final static int MESSAGE_TYPE = 3;
private SessionId _sessionId; private SessionId _sessionId;
@ -93,4 +91,4 @@ public class DestroySessionMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -15,7 +15,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when destroying * Defines the message a client sends to a router when destroying
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class DisconnectMessage extends I2CPMessageImpl { public class DisconnectMessage extends I2CPMessageImpl {
private final static Log _log = new Log(DisconnectMessage.class);
public final static int MESSAGE_TYPE = 30; public final static int MESSAGE_TYPE = 30;
private String _reason; private String _reason;
@ -83,4 +81,4 @@ public class DisconnectMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -8,15 +8,12 @@ package net.i2p.data.i2cp;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import net.i2p.util.Log;
/** /**
* Request the router tells us the current bw limits * Request the router tells us the current bw limits
* *
* @author zzz * @author zzz
*/ */
public class GetBandwidthLimitsMessage extends I2CPMessageImpl { public class GetBandwidthLimitsMessage extends I2CPMessageImpl {
private final static Log _log = new Log(GetBandwidthLimitsMessage.class);
public final static int MESSAGE_TYPE = 8; public final static int MESSAGE_TYPE = 8;
public GetBandwidthLimitsMessage() { public GetBandwidthLimitsMessage() {

View File

@ -12,14 +12,11 @@ package net.i2p.data.i2cp;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import net.i2p.util.Log;
/** /**
* Request the other side to send us what they think the current time is * Request the other side to send us what they think the current time is
* *
*/ */
public class GetDateMessage extends I2CPMessageImpl { public class GetDateMessage extends I2CPMessageImpl {
private final static Log _log = new Log(GetDateMessage.class);
public final static int MESSAGE_TYPE = 32; public final static int MESSAGE_TYPE = 32;
public GetDateMessage() { public GetDateMessage() {
@ -57,4 +54,4 @@ public class GetDateMessage extends I2CPMessageImpl {
buf.append("[GetDateMessage]"); buf.append("[GetDateMessage]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -10,7 +10,6 @@ package net.i2p.data.i2cp;
*/ */
import net.i2p.I2PException; import net.i2p.I2PException;
import net.i2p.util.Log;
/** /**
* Represent an error serializing or deserializing an APIMessage * Represent an error serializing or deserializing an APIMessage
@ -18,7 +17,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class I2CPMessageException extends I2PException { public class I2CPMessageException extends I2PException {
private final static Log _log = new Log(I2CPMessageException.class);
public I2CPMessageException(String message, Throwable parent) { public I2CPMessageException(String message, Throwable parent) {
super(message, parent); super(message, parent);
@ -27,4 +25,4 @@ public class I2CPMessageException extends I2PException {
public I2CPMessageException(String message) { public I2CPMessageException(String message) {
super(message); super(message);
} }
} }

View File

@ -15,14 +15,12 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Handle messages from the server for the client or vice versa * Handle messages from the server for the client or vice versa
* *
*/ */
public class I2CPMessageHandler { public class I2CPMessageHandler {
private final static Log _log = new Log(I2CPMessageHandler.class);
/** /**
* Read an I2CPMessage from the stream and return the fully populated object. * Read an I2CPMessage from the stream and return the fully populated object.

View File

@ -16,7 +16,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.DataStructureImpl; import net.i2p.data.DataStructureImpl;
import net.i2p.util.Log;
/** /**
* Defines the base message implementation. * Defines the base message implementation.
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public abstract class I2CPMessageImpl extends DataStructureImpl implements I2CPMessage { public abstract class I2CPMessageImpl extends DataStructureImpl implements I2CPMessage {
private final static Log _log = new Log(I2CPMessageImpl.class);
public I2CPMessageImpl() { // nop public I2CPMessageImpl() { // nop
} }
@ -129,4 +127,4 @@ public abstract class I2CPMessageImpl extends DataStructureImpl implements I2CPM
throw new DataFormatException("Error writing the message", ime); throw new DataFormatException("Error writing the message", ime);
} }
} }
} }

View File

@ -16,7 +16,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.DataStructureImpl; import net.i2p.data.DataStructureImpl;
import net.i2p.util.Log;
/** /**
* Defines the message ID of a message delivered between a router and a client * Defines the message ID of a message delivered between a router and a client
@ -25,7 +24,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class MessageId extends DataStructureImpl { public class MessageId extends DataStructureImpl {
private final static Log _log = new Log(MessageId.class);
private long _messageId; private long _messageId;
public MessageId() { public MessageId() {
@ -67,4 +65,4 @@ public class MessageId extends DataStructureImpl {
public String toString() { public String toString() {
return "[MessageId: " + getMessageId() + "]"; return "[MessageId: " + getMessageId() + "]";
} }
} }

View File

@ -16,7 +16,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.Payload; import net.i2p.data.Payload;
import net.i2p.util.Log;
/** /**
* Defines the payload message a router sends to the client * Defines the payload message a router sends to the client
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class MessagePayloadMessage extends I2CPMessageImpl { public class MessagePayloadMessage extends I2CPMessageImpl {
private final static Log _log = new Log(MessagePayloadMessage.class);
public final static int MESSAGE_TYPE = 31; public final static int MESSAGE_TYPE = 31;
private long _sessionId; private long _sessionId;
private long _messageId; private long _messageId;

View File

@ -15,7 +15,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when destroying * Defines the message a client sends to a router when destroying
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class MessageStatusMessage extends I2CPMessageImpl { public class MessageStatusMessage extends I2CPMessageImpl {
private final static Log _log = new Log(SessionStatusMessage.class);
public final static int MESSAGE_TYPE = 22; public final static int MESSAGE_TYPE = 22;
private long _sessionId; private long _sessionId;
private long _messageId; private long _messageId;
@ -179,4 +177,4 @@ public class MessageStatusMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -15,7 +15,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when asking the * Defines the message a client sends to a router when asking the
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class ReceiveMessageBeginMessage extends I2CPMessageImpl { public class ReceiveMessageBeginMessage extends I2CPMessageImpl {
private final static Log _log = new Log(ReceiveMessageBeginMessage.class);
public final static int MESSAGE_TYPE = 6; public final static int MESSAGE_TYPE = 6;
private long _sessionId; private long _sessionId;
private long _messageId; private long _messageId;
@ -110,4 +108,4 @@ public class ReceiveMessageBeginMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -14,7 +14,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when asking the * Defines the message a client sends to a router when asking the
@ -23,7 +22,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class ReceiveMessageEndMessage extends I2CPMessageImpl { public class ReceiveMessageEndMessage extends I2CPMessageImpl {
private final static Log _log = new Log(ReceiveMessageEndMessage.class);
public final static int MESSAGE_TYPE = 7; public final static int MESSAGE_TYPE = 7;
private long _sessionId; private long _sessionId;
private long _messageId; private long _messageId;
@ -94,4 +92,4 @@ public class ReceiveMessageEndMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -15,7 +15,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when * Defines the message a client sends to a router when
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author zzz * @author zzz
*/ */
public class ReconfigureSessionMessage extends I2CPMessageImpl { public class ReconfigureSessionMessage extends I2CPMessageImpl {
private final static Log _log = new Log(ReconfigureSessionMessage.class);
public final static int MESSAGE_TYPE = 2; public final static int MESSAGE_TYPE = 2;
private SessionId _sessionId; private SessionId _sessionId;
private SessionConfig _sessionConfig; private SessionConfig _sessionConfig;

View File

@ -15,7 +15,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when asking the * Defines the message a client sends to a router when asking the
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class ReportAbuseMessage extends I2CPMessageImpl { public class ReportAbuseMessage extends I2CPMessageImpl {
private final static Log _log = new Log(ReportAbuseMessage.class);
public final static int MESSAGE_TYPE = 29; public final static int MESSAGE_TYPE = 29;
private SessionId _sessionId; private SessionId _sessionId;
private AbuseSeverity _severity; private AbuseSeverity _severity;
@ -133,4 +131,4 @@ public class ReportAbuseMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -20,7 +20,6 @@ import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.Hash; import net.i2p.data.Hash;
import net.i2p.data.TunnelId; import net.i2p.data.TunnelId;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when destroying * Defines the message a client sends to a router when destroying
@ -29,7 +28,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class RequestLeaseSetMessage extends I2CPMessageImpl { public class RequestLeaseSetMessage extends I2CPMessageImpl {
private final static Log _log = new Log(RequestLeaseSetMessage.class);
public final static int MESSAGE_TYPE = 21; public final static int MESSAGE_TYPE = 21;
private SessionId _sessionId; private SessionId _sessionId;
private List _endpoints; private List _endpoints;

View File

@ -18,7 +18,6 @@ import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.Destination; import net.i2p.data.Destination;
import net.i2p.data.Payload; import net.i2p.data.Payload;
import net.i2p.util.Log;
/** /**
* Same as SendMessageMessage, but with an expiration to be passed to the router * Same as SendMessageMessage, but with an expiration to be passed to the router
@ -26,7 +25,6 @@ import net.i2p.util.Log;
* @author zzz * @author zzz
*/ */
public class SendMessageExpiresMessage extends SendMessageMessage { public class SendMessageExpiresMessage extends SendMessageMessage {
private final static Log _log = new Log(SendMessageExpiresMessage.class);
/* FIXME hides another field FIXME */ /* FIXME hides another field FIXME */
public final static int MESSAGE_TYPE = 36; public final static int MESSAGE_TYPE = 36;
private SessionId _sessionId; private SessionId _sessionId;

View File

@ -17,7 +17,6 @@ import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.Destination; import net.i2p.data.Destination;
import net.i2p.data.Payload; import net.i2p.data.Payload;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router to ask it to deliver * Defines the message a client sends to a router to ask it to deliver
@ -26,7 +25,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class SendMessageMessage extends I2CPMessageImpl { public class SendMessageMessage extends I2CPMessageImpl {
private final static Log _log = new Log(SendMessageMessage.class);
public final static int MESSAGE_TYPE = 5; public final static int MESSAGE_TYPE = 5;
private SessionId _sessionId; private SessionId _sessionId;
private Destination _destination; private Destination _destination;
@ -159,4 +157,4 @@ public class SendMessageMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -1,5 +1,4 @@
package net.i2p.data.i2cp; package net.i2p.data.i2cp;
/* /*
* free (adj.): unencumbered; not under the control of others * free (adj.): unencumbered; not under the control of others
* Written by jrandom in 2003 and released into the public domain * Written by jrandom in 2003 and released into the public domain
@ -16,7 +15,6 @@ import java.io.OutputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.data.DataStructureImpl; import net.i2p.data.DataStructureImpl;
import net.i2p.util.Log;
/** /**
* Defines the token passed between the router and client to associate messages * Defines the token passed between the router and client to associate messages
@ -25,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class SessionId extends DataStructureImpl { public class SessionId extends DataStructureImpl {
private final static Log _log = new Log(SessionId.class);
private int _sessionId; private int _sessionId;
public SessionId() { public SessionId() {
@ -64,4 +61,4 @@ public class SessionId extends DataStructureImpl {
public String toString() { public String toString() {
return "[SessionId: " + getSessionId() + "]"; return "[SessionId: " + getSessionId() + "]";
} }
} }

View File

@ -15,7 +15,6 @@ import java.io.InputStream;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Log;
/** /**
* Defines the message a client sends to a router when destroying * Defines the message a client sends to a router when destroying
@ -24,7 +23,6 @@ import net.i2p.util.Log;
* @author jrandom * @author jrandom
*/ */
public class SessionStatusMessage extends I2CPMessageImpl { public class SessionStatusMessage extends I2CPMessageImpl {
private final static Log _log = new Log(SessionStatusMessage.class);
public final static int MESSAGE_TYPE = 20; public final static int MESSAGE_TYPE = 20;
private SessionId _sessionId; private SessionId _sessionId;
private int _status; private int _status;
@ -104,4 +102,4 @@ public class SessionStatusMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }

View File

@ -17,14 +17,12 @@ import java.util.Date;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
import net.i2p.util.Clock; import net.i2p.util.Clock;
import net.i2p.util.Log;
/** /**
* Tell the other side what time it is * Tell the other side what time it is
* *
*/ */
public class SetDateMessage extends I2CPMessageImpl { public class SetDateMessage extends I2CPMessageImpl {
private final static Log _log = new Log(SetDateMessage.class);
public final static int MESSAGE_TYPE = 33; public final static int MESSAGE_TYPE = 33;
private Date _date; private Date _date;
@ -86,4 +84,4 @@ public class SetDateMessage extends I2CPMessageImpl {
buf.append("]"); buf.append("]");
return buf.toString(); return buf.toString();
} }
} }