diff --git a/Source/RP0/Tooling/ModuleToolingPFSide.cs b/Source/RP0/Tooling/ModuleToolingPFSide.cs index 31e9398bb86..5200a3b0397 100644 --- a/Source/RP0/Tooling/ModuleToolingPFSide.cs +++ b/Source/RP0/Tooling/ModuleToolingPFSide.cs @@ -27,8 +27,6 @@ public class ModuleToolingPFSide : ModuleToolingDiamLen protected PartModule pmDecoupler; protected BaseField diameterFld, heightFld, hingeEnabledFld, fairingStagedFld; - [Obsolete] - protected BaseField baseRad, maxRad, cylEnd, sideThickness, inlineHeight, noseHeightRatio; protected bool EnsureFields() { @@ -39,15 +37,7 @@ protected bool EnsureFields() hingeEnabledFld = pmFairing.Fields["hingeEnabled"]; fairingStagedFld = pmDecoupler.Fields["fairingStaged"]; - //TODO: legacy code, remove all those at a later date - baseRad = pmFairing.Fields["baseRad"]; - maxRad = pmFairing.Fields["maxRad"]; - cylEnd = pmFairing.Fields["cylEnd"]; - sideThickness = pmFairing.Fields["sideThickness"]; - inlineHeight = pmFairing.Fields["inlineHeight"]; - noseHeightRatio = pmFairing.Fields["noseHeightRatio"]; - - if (baseRad == null && diameterFld == null) + if (diameterFld == null) { RP0Debug.LogError($"[ModuleTooling] Could not bind to ProceduralFairingSide fields on {part}"); return false; @@ -96,19 +86,6 @@ public override void GetDimensions(out float diam, out float len) diam = diameterFld.GetValue(pmFairing); len = heightFld.GetValue(pmFairing); } - else - { - //TODO: legacy code, remove all those at a later date - float baseRadF, maxRadF, cylEndF, sideThicknessF, inlineHeightF, noseHeightRatioF; - baseRadF = baseRad.GetValue(pmFairing); - maxRadF = maxRad.GetValue(pmFairing); - cylEndF = cylEnd.GetValue(pmFairing); - sideThicknessF = sideThickness.GetValue(pmFairing); - inlineHeightF = inlineHeight.GetValue(pmFairing); - noseHeightRatioF = noseHeightRatio.GetValue(pmFairing); - diam = (Math.Max(baseRadF, maxRadF) + sideThicknessF) * 2f; - len = (inlineHeightF > 0) ? inlineHeightF : (noseHeightRatioF * diam / 2) + cylEndF; - } } public void UpdateToolingAndCosts()