Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit b1524bb

Browse files
committed
Remove unused code
1 parent c33d128 commit b1524bb

File tree

4 files changed

+6
-124
lines changed

4 files changed

+6
-124
lines changed

Spcode.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
<Compile Include="UI\Interop\LanguageChooserWindow.xaml.cs">
173173
<DependentUpon>LanguageChooserWindow.xaml</DependentUpon>
174174
</Compile>
175-
<Compile Include="UI\MainWindowBackgroundParser.cs" />
176175
<Compile Include="UI\MainWindowServerQuery.cs" />
177176
<Compile Include="UI\MainWindowSPCompiler.cs" />
178177
<Compile Include="UI\MainWindowCommands.cs" />

UI/Components/IntelliSenseController.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public partial class EditorElement
4343

4444
// TODO Add EnumStructs
4545
private SMMethodmap[] methodMaps;
46-
private SMVariable[] smVariables;
47-
46+
4847
private readonly Regex multilineCommentRegex = new Regex(@"/\*.*?\*/",
4948
RegexOptions.Compiled | RegexOptions.ExplicitCapture | RegexOptions.Singleline);
5049

@@ -71,7 +70,6 @@ public void LoadAutoCompletes()
7170
acEntrys = def.ProduceACNodes();
7271
isEntrys = def.ProduceISNodes();
7372
methodMaps = def.Methodmaps.ToArray();
74-
smVariables = def.Variables.ToArray();
7573
AutoCompleteBox.ItemsSource = acEntrys;
7674
MethodAutoCompleteBox.ItemsSource = isEntrys;
7775
}
@@ -88,7 +86,6 @@ public void InterruptLoadAutoCompletes(string[] FunctionStrings, SMFunction[] Fu
8886
AutoCompleteBox.ItemsSource = acEntrys;
8987
MethodAutoCompleteBox.ItemsSource = isEntrys;
9088
methodMaps = newMethodMaps;
91-
smVariables = newVariables;
9289
});
9390
}
9491

@@ -135,8 +132,10 @@ private void EvaluateIntelliSense()
135132
{
136133
if (c == '#')
137134
{
138-
HideISAC();
139-
return;
135+
string[] prep = {"define", "pragma", "file", "if"};
136+
acEntrys = ACNode.ConvertFromStringArray(prep, false, "#").ToArray();
137+
// HideISAC();
138+
break;
140139
}
141140

142141
if (!char.IsWhiteSpace(c)) break;
@@ -214,7 +213,6 @@ private void EvaluateIntelliSense()
214213
var classMatch = match.Groups["class"].Value;
215214
if (classMatch.Length > 0)
216215
{
217-
218216
var methodMap = methodMaps.FirstOrDefault(e => e.Name == classMatch);
219217
var method =
220218
methodMap?.Methods.FirstOrDefault(e => e.Name == methodString);
@@ -397,7 +395,7 @@ private bool ISAC_EvaluateKeyDownEvent(Key k)
397395
}
398396
}
399397

400-
editor.Document.Replace(endOffset, length+1, replaceString);
398+
editor.Document.Replace(endOffset, length + 1, replaceString);
401399
if (setCaret)
402400
editor.CaretOffset -= 1;
403401
return true;

UI/MainWindow.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ private void layoutDocument_Closing(object sender, CancelEventArgs e)
212212

213213
private void MetroWindow_Closing(object sender, CancelEventArgs e)
214214
{
215-
backgroundParserThread?.Abort();
216-
parseDistributorTimer?.Stop();
217215
ServerCheckThread?.Abort(); //a join would not work, so we have to be..forcefully...
218216
var lastOpenFiles = new List<string>();
219217
var editors = GetAllEditorElements();

UI/MainWindowBackgroundParser.cs

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)