common/src/main/java/HTTPClient/LinkedList.java
/**
     * Remove the specified element from the list. Does nothing if the element
     * is not in the list.
     *
     * @param elem the object to remove from the list.
     */
Remove the specified element from the list. Does nothing if the element
is not in the list.

@param elem the object to remove from the list.
Remove the specified element from the list . Does nothing if the element is not in the list . @param elem the object to remove from the list .
public synchronized void remove(Object elem)
    {
	if (head == null)  return;
	if (head.element == elem)
	{
	    head = head.next;
	    return;
	}
	LinkElement curr = head;
	while (curr.next != null)
	{
	    if (curr.next.element == elem)
	    {
		if (curr.next == tail)  tail = curr;
		curr.next = curr.next.next;
		return;
	    }
	    curr = curr.next;
	}
    }
public synchronized void remove ( Object elem ) { if ( head == null ) return ; if ( head . element == elem ) { head = head . next ; return ; } LinkElement curr = head ; while ( curr . next != null ) { if ( curr . next . element == elem ) { if ( curr . next == tail ) tail = curr ; curr . next = curr . next . next ; return ; } curr = curr . next ; } }
Remove the specified element from the list.
Remove the specified element from the list .