Skip to content

Commit 2b1779a

Browse files
committed
Removed unused code.
1 parent 294bd6d commit 2b1779a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Assets/HoloToolkit/Input/Scripts/Voice/Editor/SpeechInputHandlerEditor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override void OnInspectorGUI()
3333
}
3434
else
3535
{
36-
SpeechInputHandler handler = this.target as SpeechInputHandler;
36+
SpeechInputHandler handler = target as SpeechInputHandler;
3737
string duplicateKeyword = handler.keywords.GroupBy(keyword => keyword.Keyword.ToLower()).Where(group => group.Count() > 1).Select(group => group.Key).FirstOrDefault();
3838
if (duplicateKeyword != null)
3939
{
@@ -51,8 +51,7 @@ private void ShowList(SerializedProperty list)
5151
EditorGUI.indentLevel++;
5252

5353
// remove the keywords already assigned from the registered list
54-
GameObject selectedObject = Selection.activeGameObject;
55-
SpeechInputHandler handler = this.target as SpeechInputHandler;
54+
SpeechInputHandler handler = target as SpeechInputHandler;
5655
string[] availableKeywords = registeredKeywords.Except(handler.keywords.Select(keywordAndResponse => keywordAndResponse.Keyword)).ToArray();
5756

5857
// keyword rows

0 commit comments

Comments
 (0)