Fix #22587: Invisible Nurbs Suface There was a small bug with determinating if new object should be created and for surfeces new OB_CURVE object had been created (instead of OB_SURF). Removed unused function and enum, which were used by nurbs surface create old oprator