private void removeCall(int id, Vector vec) { Enumeration e = vec.elements(); int i = 0; while (e.hasMoreElements()) { Call c = (Call) e.nextElement(); if (c.id == id) { vec.remove(i); } i++;
private void removeCall(int id) {  int ind;  if (isInside(id, gui.calls)) { ind = getIndex(id, gui.calls); gui.calls.remove(ind); gui.list2.remove(ind); } else if (isInside(id, pendingCalls)) { ind = getIndex(id, pendingCalls); pendingCalls.remove(ind);
    private void removeCall(int id, Vector vec) {        Enumeration e = vec.elements();        int i = 0;        while (e.hasMoreElements()) {            Call c = (Call) e.nextElement();            if (c.id == id) {                vec.remove(i);            }            i++;        }        return;    }