remove unused InvalidOperation instance

Neither of these two removed InvalidOperation is used.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>