From 1f5674beec624d5524201b5fbac1aea036996bb5 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 04 Feb 2014 11:01:35 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1288 :    Migrate I18n and logging support to i18n framework and SLF4J

---
 opendj3-server-dev/src/server/org/opends/server/backends/task/Task.java |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/backends/task/Task.java b/opendj3-server-dev/src/server/org/opends/server/backends/task/Task.java
index c2714b8..2ab27c0 100644
--- a/opendj3-server-dev/src/server/org/opends/server/backends/task/Task.java
+++ b/opendj3-server-dev/src/server/org/opends/server/backends/task/Task.java
@@ -886,8 +886,6 @@
     return notifyOnError;
   }
 
-
-
   /**
    * Retrieves the set of messages that were logged by this task.  This list
    * must not be directly modified by the caller.
@@ -904,37 +902,6 @@
     return Collections.unmodifiableList(msgList);
   }
 
-
-
-  /**
-   * Writes a message to the error log using the provided information.
-   * Tasks should use this method to log messages to the error log instead of
-   * the one in <code>org.opends.server.loggers.Error</code> to ensure the
-   * messages are included in the ds-task-log-message attribute.
-   *
-   * @param  message   The message to be logged.
-   */
-  protected void logError(LocalizableMessage message)
-  {
-    // Simply pass this on to the server error logger, and it will call back
-    // to the addLogMessage method for this task.
-    logger.error(message);
-  }
-
-  /**
-   * Adds a log message to the set of messages logged by this task. This method
-   * should not be called directly by tasks, but rather will be called
-   * indirectly through the {@code ErrorLog.logError} methods. It does not
-   * automatically persist the updated task information to disk.
-   *
-   * @param message
-   *          the log message.
-   */
-  // TODO : remove this method
-  public void addLogMessage(LocalizableMessage message) {
-    addLogMessage(Severity.SEVERE_ERROR, message);
-  }
-
   /**
    * Adds a log message to the set of messages logged by this task. This method
    * should not be called directly by tasks, but rather will be called

--
Gitblit v1.10.0