[fix] remove unused variable, fix NSUInteger to int build warning