Eliminate ByteBufWriteUtil.writeMedium()
[bgpcep.git] / util / src / main / java / org / opendaylight / protocol / util / ByteBufWriteUtil.java
index a93d76021b750715d1378d1d6e88e72000adf65f..fd8e64e92f25efa91da744345397f38291cb2aaf 100644 (file)
@@ -28,20 +28,6 @@ public final class ByteBufWriteUtil {
         // Hidden on purpose
     }
 
-    /**
-     * Writes 24-bit integer <code>value</code> if not null, otherwise writes
-     * zeros to the <code>output</code> ByteBuf. ByteBuf's writerIndex is
-     * increased by 3.
-     *
-     * @param value
-     *            Medium value to be written to the output.
-     * @param output
-     *            ByteBuf, where value or zeros are written.
-     */
-    public static void writeMedium(final Integer value, final ByteBuf output) {
-        output.writeMedium(value != null ? value : 0);
-    }
-
     /**
      * Writes IPv4 address if not null, otherwise writes zeros to the
      * <code>output</code> ByteBuf. ByteBuf's writerIndex is increased by 4.