Removed unnecessary code

Only remove unnecessary code, it hasn't effect to working.