From 5fe4cfedb1ae032439b29ad6e1bb6a06d1b50550 Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Fri, 22 Sep 2006 21:19:03 +0000
Subject: [PATCH] Remove unused method

---
 opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/UnbindRequestProtocolOp.java |   64 --------------------------------
 1 files changed, 0 insertions(+), 64 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/UnbindRequestProtocolOp.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/UnbindRequestProtocolOp.java
index b5edcb0..8be55a0 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/UnbindRequestProtocolOp.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/UnbindRequestProtocolOp.java
@@ -28,16 +28,8 @@
 
 
 
-import java.util.ArrayList;
-
-import org.opends.server.core.DirectoryException;
-import org.opends.server.core.UnbindOperation;
 import org.opends.server.protocols.asn1.ASN1Element;
 import org.opends.server.protocols.asn1.ASN1Null;
-import org.opends.server.types.Control;
-import org.opends.server.types.ResultCode;
-import org.opends.server.api.ClientConnection;
-
 import static org.opends.server.loggers.Debug.*;
 import static org.opends.server.messages.MessageHandler.*;
 import static org.opends.server.messages.ProtocolMessages.*;
@@ -147,62 +139,6 @@
 
 
   /**
-   * Converts the provided LDAP message containing an abandon request protocol
-   * op to an <CODE>AbandonOperation</CODE> object that may be processed by the
-   * core server.
-   *
-   * @param  requestMessage    The LDAP message containing the abandon request
-   *                           protocol op.
-   * @param  clientConnection  The client connection from which the request was
-   *                           read.
-   * @param  nextOperationID  The next ldap operation id that would be used for
-   *                          this connection.
-   * @return  The unbind operation created from the provided request message.
-   *
-   * @throws  DirectoryException  If the provided LDAP message cannot be decoded
-   *                              as an unbind operation or if the LDAPMessage
-   *                              protocol operation is not an AbandonOperation.
-   */
-  public static UnbindOperation messageToUnbindOperation(
-          LDAPMessage requestMessage, ClientConnection clientConnection,
-          int nextOperationID)
-  throws DirectoryException
-  {
-      assert debugEnter(CLASS_NAME, "messageToUnbindOperation",
-              String.valueOf(requestMessage),
-              String.valueOf(clientConnection));
-      ProtocolOp op=requestMessage.getProtocolOp();
-      if(!(op instanceof AbandonRequestProtocolOp))
-      {
-          int msgID = MSGID_LDAP_UNBIND_INVALID_MESSAGE_TYPE;
-          String message = getMessage(msgID, String.valueOf(requestMessage));
-          throw new DirectoryException(ResultCode.PROTOCOL_ERROR,
-                                                             message, msgID);
-      }
-
-      ArrayList<Control> controls;
-      ArrayList<LDAPControl> ldapControls = requestMessage.getControls();
-      if ((ldapControls == null) || ldapControls.isEmpty())
-      {
-          controls = null;
-      }
-      else
-      {
-          controls = new ArrayList<Control>(ldapControls.size());
-          for (LDAPControl c : ldapControls)
-          {
-              controls.add(c.getControl());
-          }
-      }
-
-      return new UnbindOperation(clientConnection,
-              nextOperationID, requestMessage.getMessageID(),
-              controls);
-  }
-
-
-
-  /**
    * Appends a string representation of this LDAP protocol op to the provided
    * buffer.
    *

--
Gitblit v1.10.0