Skip to content

Commit dec6b26

Browse files
Removed isRecording field. The dictation system already performs that check internally when starting/stoping recording.
1 parent ef231c2 commit dec6b26

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/DictationHandler.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public class StringUnityEvent : UnityEvent<string> { }
5151
/// </summary>
5252
public StringUnityEvent OnDictationError;
5353

54-
private bool isRecording = false;
5554
private IMixedRealityDictationSystem dictationSystem;
5655

5756
/// <summary>
@@ -61,7 +60,6 @@ public void StartRecording()
6160
{
6261
if (dictationSystem != null)
6362
{
64-
isRecording = true;
6563
dictationSystem.StartRecording(gameObject, initialSilenceTimeout, autoSilenceTimeout, recordingTime);
6664
}
6765
}
@@ -74,7 +72,6 @@ public void StopRecording()
7472
if (dictationSystem != null)
7573
{
7674
dictationSystem.StopRecording();
77-
isRecording = false;
7875
}
7976
}
8077

0 commit comments

Comments
 (0)