Remove redaundant codes.

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