[PATCH] remove redundant code