core: remove unused variables

Find bugs cleanup. Removed unused variables.

Change-Id: I16e2f536c7f7d61f0b357deb9abaac63893403cc
Signed-off-by: Alissa Bonas <abonas@redhat.com>