kOS.Suffixed.Node.Remove C# (CSharp) Method

Remove() public method

public Remove ( ) : void
return void
        public void Remove()
        {
            if (nodeRef == null) return;

            string careerReason;
            if (! Career.CanMakeNodes(out careerReason))
                throw new KOSLowTechException("use maneuver nodes", careerReason);

            nodeLookup.Remove(nodeRef);

            if (vesselRef.patchedConicSolver == null)
                throw new KOSSituationallyInvalidException(
                    "A KSP limitation makes it impossible to access the manuever nodes of this vessel at this time. " +
                    "(perhaps it's not the active vessel?)");

            nodeRef.RemoveSelf();

            nodeRef = null;
            vesselRef = null;
        }