From bd8fcc5a7de0344027c44027bbb70f58c0a472c5 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 08:07:40 +0000
Subject: [PATCH] ServerState: removed reload() (only used by tests)

---
 opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java |   27 ++-------------------------
 1 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java
index fc3ed0b..c872c14 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java
@@ -12,7 +12,7 @@
  * information: "Portions Copyright [year] [name of copyright owner]".
  *
  * Copyright 2006-2010 Sun Microsystems, Inc.
- * Portions Copyright 2011-2015 ForgeRock AS.
+ * Portions Copyright 2011-2016 ForgeRock AS.
  */
 package org.opends.server.replication.common;
 
@@ -41,7 +41,6 @@
  */
 public class ServerState implements Iterable<CSN>
 {
-
   /** Associates a serverId with a CSN. */
   private final ConcurrentMap<Integer, CSN> serverIdToCSN = new ConcurrentSkipListMap<>();
   /**
@@ -50,9 +49,7 @@
    */
   private volatile boolean saved = true;
 
-  /**
-   * Creates a new empty ServerState.
-   */
+  /** Creates a new empty ServerState. */
   public ServerState()
   {
     super();
@@ -161,22 +158,6 @@
   }
 
   /**
-   * Replace the Server State with another ServerState.
-   *
-   * @param serverState The ServerState.
-   *
-   * @return a boolean indicating if the update was meaningful.
-   */
-  public boolean reload(ServerState serverState) {
-    if (serverState == null) {
-      return false;
-    }
-
-    clear();
-    return update(serverState);
-  }
-
-  /**
    * Return a Set of String usable as a textual representation of
    * a Server state.
    * format : time seqnum id
@@ -214,8 +195,6 @@
     return values;
   }
 
-
-
   /**
    * Encodes this server state to the provided ASN1 writer.
    *
@@ -315,7 +294,6 @@
     return new HashMap<>(serverIdToCSN);
   }
 
-  /** {@inheritDoc} */
   @Override
   public Iterator<CSN> iterator()
   {
@@ -436,5 +414,4 @@
   {
     return saved;
   }
-
 }

--
Gitblit v1.10.0