Fix compiler warnings

There where a few unused variables that gcc was complaining about, this
patch removes these unused variables.

Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>