From 10a58f5110dd42aae14addffcfb981adc3e08c62 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 27 Feb 2015 22:32:52 +0000
Subject: [PATCH] OPENDJ-1855: minor code cleanup
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java | 30 +-----------------------------
1 files changed, 1 insertions(+), 29 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
index 6c05c79..189e88f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
@@ -28,7 +28,6 @@
import static org.opends.server.backends.pluggable.JebFormat.*;
-import org.forgerock.opendj.ldap.ByteSequence;
import org.forgerock.opendj.ldap.ByteString;
import org.opends.server.backends.pluggable.spi.ReadableStorage;
import org.opends.server.backends.pluggable.spi.Storage;
@@ -82,26 +81,6 @@
}
/**
- * Write a record to the DN database, where the key and value are already
- * formatted.
- *
- * @param txn
- * A JE database transaction to be used for the database operation,
- * or null if none.
- * @param key
- * A ByteString containing the record key.
- * @param value
- * A ByteString containing the record value.
- * @throws StorageRuntimeException
- * If an error occurred while attempting to write the record.
- */
- @Override
- public void put(WriteableStorage txn, ByteSequence key, ByteSequence value) throws StorageRuntimeException
- {
- super.put(txn, key, value);
- }
-
- /**
* Remove a record from the DN database.
* @param txn A JE database transaction to be used for the database operation,
* or null if none.
@@ -126,7 +105,7 @@
* @return The entry ID, or null if the given DN is not in the DN database.
* @throws StorageRuntimeException If an error occurs in the JE database.
*/
- public EntryID get(ReadableStorage txn, DN dn, boolean isRMW) throws StorageRuntimeException
+ EntryID get(ReadableStorage txn, DN dn, boolean isRMW) throws StorageRuntimeException
{
ByteString key = dnToDNKey(dn, prefixRDNComponents);
ByteString value = read(txn, key, isRMW);
@@ -136,11 +115,4 @@
}
return null;
}
-
- /** {@inheritDoc} */
- @Override
- public ByteString read(ReadableStorage txn, ByteSequence key, boolean isRMW)
- {
- return super.read(txn, key, isRMW);
- }
}
--
Gitblit v1.10.0