Removes nde from the list it is part of (should be this
one, otherwise results are undefined). If nde is the
current head element, then the next element becomes head,
if there are no more elements the list becomes empty.
param
nde Node to remove.
if (nde == head) {
if (head.getNext() == head) {
head = null; // Last node...
} else {
head = head.getNext();
}
}
nde.unlink();
size--;