mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Now fuzzymatchResult is unused so remove it too.
This commit is contained in:
parent
bb408b8673
commit
3a5051646f
1 changed files with 0 additions and 5 deletions
|
@ -434,11 +434,6 @@ class Scratch3SpeechBlocks {
|
||||||
const phrases = this._phraseList.join(' ');
|
const phrases = this._phraseList.join(' ');
|
||||||
const fuzzyMatchIndex = this._computeFuzzyMatch(phrases, transcriptionResult);
|
const fuzzyMatchIndex = this._computeFuzzyMatch(phrases, transcriptionResult);
|
||||||
|
|
||||||
let fuzzyMatchResult = null;
|
|
||||||
if (fuzzyMatchIndex !== -1) {
|
|
||||||
fuzzyMatchResult = transcriptionResult.substring(fuzzyMatchIndex, fuzzyMatchIndex + phrases.length);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the result isn't good enough yet, return without saving and resolving the promises.
|
// If the result isn't good enough yet, return without saving and resolving the promises.
|
||||||
if (!this._shouldKeepResult(fuzzyMatchIndex, result, transcriptionResult)) {
|
if (!this._shouldKeepResult(fuzzyMatchIndex, result, transcriptionResult)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue