Fix unused function
Signed-off-by:Juan Borda <juanignacioborda@gmail.com>