core: Remove unused variables and methods

Remove unused variables and methods in several commands

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