restapi: Remove Unnecessary Code

Change-Id: I6d84b63a6f954015240865ffbb3d5fb95bab0bb1
Signed-off-by: Ori Liel <oliel@redhat.com>