mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
30.55.2014 4dc43c4310f901a2187fb2c981cb39104095c860
Code cleanup : remove unused constant and method

Remove constant AVA.HEX_STRING_SEPARATOR
Remove method ByteSequenceReader.remainingUpTo()
2 files modified
21 ■■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/AVA.java 2 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteSequenceReader.java 19 ●●●●● patch | view | raw | blame | history
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.
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: