Skip to content

Commit

Permalink
GSAGH-499: remove default break
Browse files Browse the repository at this point in the history
  • Loading branch information
SandeepArup committed Feb 10, 2025
1 parent 2bfb5fb commit b3c6cd9
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions GsaGH/Components/4_Analysis/CreateAnalysisTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;

using GH_IO.Serialization;
using GH_IO.Types;

using Grasshopper.Kernel;
using Grasshopper.Kernel.Parameters;
Expand Down Expand Up @@ -145,7 +142,6 @@ public override void VariableParameterMaintenance() {
case PDeltaCases.ResultCase:
SetInputAttributes(2, _resultCaseAttributes);
break;
default: break;
}

break;
Expand All @@ -158,8 +154,6 @@ public override void VariableParameterMaintenance() {
case AnalysisTaskType.Static:
SetInputAttributes(_casesParamIndex, _analysisCaseInputAttributes);
break;
default:
break;
}
}

Expand Down Expand Up @@ -230,8 +224,6 @@ protected override void SolveInternal(IGH_DataAccess da) {
return;
}
break;
default:
break;
}

var gsaAnalysisTask = new GsaAnalysisTask {
Expand Down Expand Up @@ -275,8 +267,7 @@ private bool GetAnalysisCases(IGH_DataAccess da, out List<GsaAnalysisCase> cases
new GsaAnalysisCase("", "Footfall")
};
break;
default:
break;

}
if (cases == null) {
this.AddRuntimeRemark("Default Task has been created; it will by default contain all cases found in model");
Expand All @@ -303,7 +294,6 @@ private AnalysisTask CreateStaticPDeltaTask(IGH_DataAccess da, AnalysisTask task
task = AnalysisTaskFactory.CreateStaticPDeltaAnalysisTask(name,
new GeometricStiffnessFromResultCase(resultCase));
break;
default: break;
}

return task;
Expand Down Expand Up @@ -540,7 +530,6 @@ private void UpdateParameters() {
_casesParamIndex = 3;
Params.RegisterInputParam(new Param_Integer());
break;
default: break;
}

Params.RegisterInputParam(new Param_GenericObject());
Expand All @@ -560,14 +549,11 @@ private void UpdateParameters() {
Params.RegisterInputParam(FootfallInputManager._excitationForcesAttributes.ParamType);
Params.RegisterInputParam(FootfallInputManager._dampingAttributes.ParamType);
_casesParamIndex = !IsSelfExcitationSelected() ? 9 : 8;

break;
case AnalysisTaskType.ModalDynamic:
Params.RegisterInputParam(new GsaModalDynamicParameter());
_casesParamIndex = 2;
break;
default:
break;
}
}

Expand Down Expand Up @@ -610,8 +596,6 @@ private void UpdateDropdownItems() {
_dropDownItems.Add(_solverTypes.Keys.ToList());
_selectedItems.Add(_dropDownItems[0][0]);
break;
default:
break;
}
ReDrawComponent();
}
Expand Down

0 comments on commit b3c6cd9

Please sign in to comment.