Fixed unused code (fullName and $code error)

Signed-off-by: Julien Bonvarlet <jbonva@gmail.com>