diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 345936737..5db4fc156 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -95,8 +95,6 @@ class PacketReader { private String connectionID = null; private Object connectionIDLock = new Object(); - private int packetsRead = 0; - protected PacketReader(XMPPConnection connection) { this.connection = connection; @@ -171,15 +169,6 @@ class PacketReader { } } - /** - * Returns the number of packets read by the packet reader. - * - * @return the number of packets read by the packet reader. - */ - public int getPacketsRead() { - return packetsRead; - } - /** * Starts the packet reader thread and returns once a connection to the server * has been established. A connection will be attempted for a maximum of five @@ -342,9 +331,6 @@ class PacketReader { return; } - // Increment the number of packets read. - packetsRead++; - // Remove all null values from the collectors list. synchronized (collectors) { for (int i=collectors.size()-1; i>=0; i--) {