Removed unused variable

This commit is contained in:
Hans-Albert Maritz 2015-03-10 21:35:02 +11:00
parent 35016cb007
commit f8e39b4900
1 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,6 @@ class IDEFrame : AppFrame {
OutputPanel _logPanel;
DockHost _dockHost;
TabWidget _tabs;
EditorTool _editorTool;
DCDServer _dcdServer;
IDESettings _settings;
@ -106,6 +105,7 @@ class IDEFrame : AppFrame {
override protected void init() {
_appName = "dlangide";
//_editorTool = new DEditorTool(this);
_dcdServer = new DCDServer();
_settings = new IDESettings(buildNormalizedPath(settingsDir, "settings.json"));
_settings.load();
@ -618,11 +618,11 @@ class IDEFrame : AppFrame {
return true;
case IDEActions.GoToDefinition:
Log.d("Trying to go to definition.");
_editorTool.goToDefinition(currentEditor(), currentEditor.getCaretPosition());
currentEditor.editorTool.goToDefinition(currentEditor(), currentEditor.getCaretPosition());
return true;
case IDEActions.GetCompletionSuggestions:
Log.d("Getting auto completion suggestions.");
auto results = _editorTool.getCompletions(currentEditor, currentEditor.getCaretPosition);
auto results = currentEditor.editorTool.getCompletions(currentEditor, currentEditor.getCaretPosition);
currentEditor.showCompletionPopup(results);
return true;
case IDEActions.EditPreferences: