Remove some useless codes