Remove useless log functions.