Remove useless debug functions