core: [coverity] fix non used code

Change-Id: I04a33c9f17e08e69a60cb607698a430b33213710
Signed-off-by: Roy Golan <rgolan@redhat.com>