Skip to content

Commit

Permalink
removed data from textlisteners
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed May 4, 2024
1 parent 7f1ea8b commit 3c7f06b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,6 @@ public C getConfig() {
C c = super.getConfig();
c.listening = isListening();
c.wakeWord = getWakeWord();
Set<String> listeners = getAttached("publishText");
c.textListeners = listeners.toArray(new String[0]);
return c;
}

Expand All @@ -585,11 +583,6 @@ public C apply(C c) {
stopRecording();
}

if (c.textListeners != null) {
for (String listener : c.textListeners) {
addListener("publishText", listener);
}
}
return c;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ public Plan getDefault(Plan plan, String name) {
WebkitSpeechRecognitionConfig ear = (WebkitSpeechRecognitionConfig) plan.get(getPeerName("ear"));
ear.listeners.add(new Listener("publishText", name + ".chatBot", "onText"));
ear.listening = true;
// remove, should only need ServiceConfig.listeners
ear.textListeners = new String[] { name + ".chatBot" };

JMonkeyEngineConfig simulator = (JMonkeyEngineConfig) plan.get(getPeerName("simulator"));

Expand Down

0 comments on commit 3c7f06b

Please sign in to comment.