[misc] Remove useless code