From 3a5051646fa2bdb8f8a896e68f07b1ddec904c05 Mon Sep 17 00:00:00 2001 From: picklesrus Date: Wed, 9 May 2018 17:09:00 -0700 Subject: [PATCH] Now fuzzymatchResult is unused so remove it too. --- src/extensions/scratch3_speech/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/extensions/scratch3_speech/index.js b/src/extensions/scratch3_speech/index.js index 2199edebe..76267a937 100644 --- a/src/extensions/scratch3_speech/index.js +++ b/src/extensions/scratch3_speech/index.js @@ -434,11 +434,6 @@ class Scratch3SpeechBlocks { const phrases = this._phraseList.join(' '); 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 (!this._shouldKeepResult(fuzzyMatchIndex, result, transcriptionResult)) { return;