restapi: Remove unnecessary code

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