remove unused method

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@636733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-03-13 11:56:41 +00:00
parent 5288e0d2e7
commit 4a136864f1
1 changed files with 1 additions and 23 deletions

View File

@ -207,29 +207,7 @@ public class HashIndex implements Index, HashIndexMBean {
throw new RuntimeException(e);
}
}
}
public void dump() throws IOException {
long offset = 0;
readBuffer = new byte[pageSize];
dataIn = new DataByteArrayInputStream();
dataOut = new DataByteArrayOutputStream(pageSize);
int count = 0;
while ((offset + pageSize) <= indexFile.length()) {
indexFile.seek(offset);
HashPage page = getFullPage(offset);
if (page.isActive()) {
for (HashEntry entry : page.getEntries()) {
count++;
System.out.println("PAGE( " + count + ") " + page.getId() + ": " + entry);
}
}
offset += pageSize;
}
}
}
public synchronized void unload() throws IOException {
if (loaded.compareAndSet(true, false)) {