[Serializer] Remove unused statement, fix doc