Clean the code

Remove code corresponding to a function not used