Remove needless codes