From 4dc43c4310f901a2187fb2c981cb39104095c860 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 30 Dec 2014 08:55:10 +0000
Subject: [PATCH] Code cleanup : remove unused constant and method

---
 opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteSequenceReader.java |   19 -------------------
 opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AVA.java                |    2 --
 2 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AVA.java b/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AVA.java
index 0be8efa..b4baf5b 100644
--- a/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AVA.java
+++ b/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AVA.java
@@ -69,8 +69,6 @@
  */
 public final class AVA implements Comparable<AVA> {
 
-    private static final char HEX_STRING_SEPARATOR = '%';
-
     /**
      * Parses the provided LDAP string representation of an AVA using the
      * default schema.
diff --git a/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteSequenceReader.java b/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteSequenceReader.java
index 1add8e2..0433e0c 100755
--- a/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteSequenceReader.java
+++ b/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteSequenceReader.java
@@ -393,25 +393,6 @@
     }
 
     /**
-     * Returns the number of bytes between the current position and the position of first occurence of provided byte.
-     *
-     * @param b
-     *          the byte to look for
-     * @return the number of bytes between current position and position of provided byte
-     * @throws IndexOutOfBoundsException
-     *           if the byte to look for is not present in this sequence
-     */
-    public int remainingUpTo(byte b)
-    {
-      int length = 0;
-      while (peek(length) != b)
-      {
-        length++;
-      }
-      return length;
-    }
-
-    /**
      * Rewinds this reader's position to zero.
      * <p>
      * An invocation of this method of the form:

--
Gitblit v1.10.0