Remove redundant codes.

Signed-off-by: Johnson Jou <johnson@unispace3d.com>