Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 2fdc8d2

Browse files
committed
removed unused assemblies
1 parent 759c625 commit 2fdc8d2

3 files changed

Lines changed: 29 additions & 36 deletions

File tree

Component/PythonEnvironment.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal PythonEnvironment(Grasshopper.Kernel.GH_Component component, PythonScri
8484

8585
public Version Version { get { return Assembly.GetExecutingAssembly().GetName().Version; } }
8686

87-
public void LoadAssembly(System.Reflection.Assembly assembly)
87+
public void LoadAssembly(Assembly assembly)
8888
{
8989
FunctionalityLoad(assembly);
9090

@@ -94,11 +94,11 @@ public void LoadAssembly(System.Reflection.Assembly assembly)
9494
// we really want to get intellisense right away. No matter what
9595
// so, we first make it cache, then add to it
9696

97-
var intellisenseType = Intellisense.GetType();
98-
var m = intellisenseType.GetMethod("GetModuleList", BindingFlags.Public | BindingFlags.Instance | BindingFlags.InvokeMethod);
97+
var intellisense_type = Intellisense.GetType();
98+
var m = intellisense_type.GetMethod("GetModuleList", BindingFlags.Public | BindingFlags.Instance | BindingFlags.InvokeMethod);
9999
m.Invoke(Intellisense, null);
100100

101-
var ex_m_autocomplete_modules = intellisenseType.GetField("m_autocomplete_modules",
101+
var ex_m_autocomplete_modules = intellisense_type.GetField("m_autocomplete_modules",
102102
BindingFlags.GetField | BindingFlags.NonPublic | BindingFlags.Instance);
103103

104104
if (ex_m_autocomplete_modules == null) return;
@@ -112,7 +112,7 @@ public void LoadAssembly(System.Reflection.Assembly assembly)
112112
}
113113
}
114114

115-
private void FunctionalityLoad(System.Reflection.Assembly assembly)
115+
private void FunctionalityLoad(Assembly assembly)
116116
{
117117
var runtime = Runtime as dynamic;
118118
runtime.LoadAssembly(assembly);

Component/ZUIPythonComponent.cs

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ namespace GhPython.Component
1111
[Guid("410755B1-224A-4C1E-A407-BF32FB45EA7E")]
1212
public class ZuiPythonComponent : ScriptingAncestorComponent, IGH_VariableParameterComponent
1313
{
14-
public ZuiPythonComponent()
15-
{
16-
}
17-
18-
protected override void AddDefaultInput(GH_Component.GH_InputParamManager pManager)
14+
protected override void AddDefaultInput(GH_InputParamManager pManager)
1915
{
2016
pManager.AddParameter(CreateParameter(GH_ParameterSide.Input, pManager.ParamCount));
2117
pManager.AddParameter(CreateParameter(GH_ParameterSide.Input, pManager.ParamCount));
2218
}
2319

24-
protected override void AddDefaultOutput(GH_Component.GH_OutputParamManager pManager)
20+
protected override void AddDefaultOutput(GH_OutputParamManager pManager)
2521
{
2622
pManager.RegisterParam(CreateParameter(GH_ParameterSide.Output, pManager.ParamCount));
2723
}
@@ -41,45 +37,45 @@ internal override void FixGhInput(Param_ScriptVariable i, bool alsoSetIfNecessar
4137
i.TypeHint = i.Hints[1];
4238
}
4339

44-
static readonly List<IGH_TypeHint> m_hints = new List<IGH_TypeHint>();
40+
static readonly List<IGH_TypeHint> g_hints = new List<IGH_TypeHint>();
4541
static List<IGH_TypeHint> GetHints()
4642
{
47-
lock (m_hints)
43+
lock (g_hints)
4844
{
49-
if (m_hints.Count == 0)
45+
if (g_hints.Count == 0)
5046
{
51-
m_hints.Add(new NoChangeHint());
52-
m_hints.Add(new GhDocGuidHint());
47+
g_hints.Add(new NoChangeHint());
48+
g_hints.Add(new GhDocGuidHint());
5349

54-
m_hints.AddRange(PossibleHints);
50+
g_hints.AddRange(PossibleHints);
5551

56-
m_hints.RemoveAll(t =>
52+
g_hints.RemoveAll(t =>
5753
{
5854
var y = t.GetType();
5955
return (y == typeof (GH_DoubleHint_CS) || y == typeof (GH_StringHint_CS));
6056
});
61-
m_hints.Insert(4, new NewFloatHint());
62-
m_hints.Insert(6, new NewStrHint());
57+
g_hints.Insert(4, new NewFloatHint());
58+
g_hints.Insert(6, new NewStrHint());
6359

64-
m_hints.Add(new GH_BoxHint());
60+
g_hints.Add(new GH_BoxHint());
6561

66-
m_hints.Add(new GH_HintSeparator());
62+
g_hints.Add(new GH_HintSeparator());
6763

68-
m_hints.Add(new GH_LineHint());
69-
m_hints.Add(new GH_CircleHint());
70-
m_hints.Add(new GH_ArcHint());
71-
m_hints.Add(new GH_PolylineHint());
64+
g_hints.Add(new GH_LineHint());
65+
g_hints.Add(new GH_CircleHint());
66+
g_hints.Add(new GH_ArcHint());
67+
g_hints.Add(new GH_PolylineHint());
7268

73-
m_hints.Add(new GH_HintSeparator());
69+
g_hints.Add(new GH_HintSeparator());
7470

75-
m_hints.Add(new GH_CurveHint());
76-
m_hints.Add(new GH_MeshHint());
77-
m_hints.Add(new GH_SurfaceHint());
78-
m_hints.Add(new GH_BrepHint());
79-
m_hints.Add(new GH_GeometryBaseHint());
71+
g_hints.Add(new GH_CurveHint());
72+
g_hints.Add(new GH_MeshHint());
73+
g_hints.Add(new GH_SurfaceHint());
74+
g_hints.Add(new GH_BrepHint());
75+
g_hints.Add(new GH_GeometryBaseHint());
8076
}
8177
}
82-
return m_hints;
78+
return g_hints;
8379
}
8480

8581
#region IGH_VariableParameterComponent implementation

GhPython.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,14 @@
6969
<Private>False</Private>
7070
</Reference>
7171
<Reference Include="Microsoft.CSharp" />
72-
<Reference Include="Microsoft.Dynamic, Version=1.1.0.20, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL" />
7372
<Reference Include="RhinoCommon">
7473
<HintPath>references\RhinoCommon.dll</HintPath>
7574
<Private>False</Private>
7675
</Reference>
7776
<Reference Include="System" />
78-
<Reference Include="System.Data" />
7977
<Reference Include="System.Drawing" />
8078
<Reference Include="System.Numerics" />
8179
<Reference Include="System.Windows.Forms" />
82-
<Reference Include="System.Xml" />
8380
</ItemGroup>
8481
<ItemGroup>
8582
<Compile Include="Assemblies\PyghaLoader.cs" />

0 commit comments

Comments
 (0)