From 3802f296fc94299b99631bce98ec2199c689bcd8 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 17 Dec 2013 22:27:57 +0000
Subject: [PATCH] Remove dead code.
---
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java | 94 -----------------------------------------------
1 files changed, 0 insertions(+), 94 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
index c0ecc9c..eb19fae 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -3831,100 +3831,6 @@
}
}
- /**
- * Clear the contents for a attribute index from disk.
- *
- * @param index The attribute index to clear.
- * @return The number of records deleted.
- * @throws DatabaseException if a JE database error occurs.
- */
- public long clearAttributeIndex(AttributeIndex index)
- throws DatabaseException
- {
- long count = 0;
-
- index.close();
- try
- {
- if(env.getConfig().getTransactional())
- {
- Transaction txn = beginTransaction();
- try
- {
- if(index.equalityIndex != null)
- {
- count += env.truncateDatabase(txn, index.equalityIndex.getName(),
- true);
- }
- if(index.presenceIndex != null)
- {
- count += env.truncateDatabase(txn, index.presenceIndex.getName(),
- true);
- }
- if(index.substringIndex != null)
- {
- count += env.truncateDatabase(txn, index.substringIndex.getName(),
- true);
- }
- if(index.orderingIndex != null)
- {
- count += env.truncateDatabase(txn, index.orderingIndex.getName(),
- true);
- }
- if(index.approximateIndex != null)
- {
- count += env.truncateDatabase(txn, index.approximateIndex.getName(),
- true);
- }
- transactionCommit(txn);
- }
- catch(DatabaseException de)
- {
- transactionAbort(txn);
- throw de;
- }
- }
- else
- {
- if(index.equalityIndex != null)
- {
- count += env.truncateDatabase(null, index.equalityIndex.getName(),
- true);
- }
- if(index.presenceIndex != null)
- {
- count += env.truncateDatabase(null, index.presenceIndex.getName(),
- true);
- }
- if(index.substringIndex != null)
- {
- count += env.truncateDatabase(null, index.substringIndex.getName(),
- true);
- }
- if(index.orderingIndex != null)
- {
- count += env.truncateDatabase(null, index.orderingIndex.getName(),
- true);
- }
- if(index.approximateIndex != null)
- {
- count += env.truncateDatabase(null, index.approximateIndex.getName(),
- true);
- }
- }
- }
- finally
- {
- index.open();
- }
- if(debugEnabled())
- {
- TRACER.debugVerbose("Cleared %d existing records from the " +
- "index %s", count, index.getAttributeType().getNameOrOID());
- }
- return count;
- }
-
/**
* Finds an existing entry whose DN is the closest ancestor of a given baseDN.
--
Gitblit v1.10.0