ivy: delete unused code found by coverage tool

Change-Id: I20873210c175a87a90bd7f3256ec0da1f597471b