private TaskInProgress removeMatchingTipUnprotectedUnconditional ( List < TaskInProgress > taskList , TaskInProgress intendedTip ) { for ( Iterator < TaskInProgress > iter = taskList . iterator ( ) ; iter . hasNext ( ) ; ) { TaskInProgress t = iter . next ( ) ; if ( t . getTIPId ( ) . equals ( intendedTip . getTIPId ( ) ) ) { iter . remove ( ) ; return t ; } } return null ; }
Removes matching TIP without checking any conditions