Author: j16sdiz
Date: 2008-09-07 15:18:36 +0000 (Sun, 07 Sep 2008)
New Revision: 22538
Modified:
trunk/freenet/src/freenet/support/DoublyLinkedList.java
trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java
Log:
remove unimplemented method
- no one is using this anyway
- this give no performance benifit as have have to iternate and
setParent()
Modified: trunk/freenet/src/freenet/support/DoublyLinkedList.java
===================================================================
--- trunk/freenet/src/freenet/support/DoublyLinkedList.java 2008-09-07
15:18:16 UTC (rev 22537)
+++ trunk/freenet/src/freenet/support/DoublyLinkedList.java 2008-09-07
15:18:36 UTC (rev 22538)
@@ -63,10 +63,6 @@
*/
void unshift(DoublyLinkedList.Item<T> i);
/**
- * Put all items in the specified list before the first item.
- */
- void unshift(DoublyLinkedList<T> l);
- /**
* Removes and returns the first item.
*/
Item shift();
@@ -80,10 +76,6 @@
*/
void push(DoublyLinkedList.Item<T> i);
/**
- * Puts all items in the specified list after the last item.
- */
- void push(DoublyLinkedList<T> l);
- /**
* Removes and returns the last item.
*/
Item pop();
@@ -110,17 +102,9 @@
*/
void insertPrev(DoublyLinkedList.Item<T> i, DoublyLinkedList.Item<T> j);
/**
- * Inserts the entire {@link DoublyLinkedList} <code>l</code> before item
<code>i</code>.
- */
- void insertPrev(DoublyLinkedList.Item<T> i, DoublyLinkedList<T> l);
- /**
* Inserts item <code>j</code> after item <code>i</code.
*/
- void insertNext(DoublyLinkedList.Item<T> i, DoublyLinkedList.Item<T> j);
- /**
- * Inserts the entire {@link DoublyLinkedList} <code>l</code> after item
<code>i</code>.
- */
- void insertNext(DoublyLinkedList.Item<T> i, DoublyLinkedList<T> l);
+ void insertNext(DoublyLinkedList.Item<T> i, DoublyLinkedList.Item<T> j);
}
Modified: trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java
===================================================================
--- trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java 2008-09-07
15:18:16 UTC (rev 22537)
+++ trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java 2008-09-07
15:18:36 UTC (rev 22538)
@@ -140,14 +140,7 @@
/**
* {@inheritDoc}
- * FIXME: unimplemented
*/
- public void unshift(DoublyLinkedList<T> l) {
- throw new RuntimeException("function currently unimplemented because i
am a lazy sod");
- }
- /**
- * {@inheritDoc}
- */
public final DoublyLinkedList.Item<T> shift() {
return size == 0 ? null : remove(_headptr.next);
}
@@ -189,16 +182,10 @@
public final void push(DoublyLinkedList.Item<T> i) {
insertPrev(_tailptr, i);
}
+
/**
* {@inheritDoc}
- * FIXME: unimplemented
*/
- public void push(DoublyLinkedList<T> l) {
- throw new RuntimeException("function currently unimplemented because i
am a lazy sod");
- }
- /**
- * {@inheritDoc}
- */
public final DoublyLinkedList.Item<T> pop() {
return size == 0 ? null : remove(_tailptr.prev);
}
@@ -317,15 +304,7 @@
/**
* {@inheritDoc}
- * FIXME: unimplemented
*/
- public void insertPrev(DoublyLinkedList.Item<T> i, DoublyLinkedList<T> l) {
- throw new RuntimeException("function currently unimplemented because i
am a lazy sod");
- }
-
- /**
- * {@inheritDoc}
- */
public void insertNext(DoublyLinkedList.Item<T> i,
DoublyLinkedList.Item<T> j) {
if (i.getParent() != this)
throw new PromiscuousItemException(i, i.getParent());
@@ -344,15 +323,6 @@
++size;
}
- /**
- * {@inheritDoc}
- * FIXME: unimplemented
- */
- public void insertNext(DoublyLinkedList.Item<T> i, DoublyLinkedList<T> l) {
- throw new RuntimeException("function currently unimplemented because i
am a lazy sod");
- }
-
-
//=== Walkable implementation
==============================================
/**