question: public void removeCartItem ( int index , LocalDispatcher dispatcher ) throws CartItemModifyException { if ( isReadOnlyCart ( ) ) { throw new CartItemModifyException ( "Cart items cannot be changed" ) ; } if ( index < 0 ) return ; if ( cartLines . size ( ) <= index ) return ; ShoppingCartItem item = cartLines . remove ( index ) ; item . setQuantity ( BigDecimal . ZERO , dispatcher , this ) ; }
target:  Remove an item from the cart object. 