diff --git a/dashboard-ui/voice/voice.js b/dashboard-ui/voice/voice.js
index 64a2aafed1..b48664f3c1 100644
--- a/dashboard-ui/voice/voice.js
+++ b/dashboard-ui/voice/voice.js
@@ -1,356 +1,5 @@
-define(['paperdialoghelper'], function (paperDialogHelper) {
+define([], function () {
- var currentRecognition;
- var lang = 'en-US';
-
- var commandgroups;
-
- function getCommandGroups() {
-
- if (commandgroups) {
- return Promise.resolve(commandgroups);
- }
-
- return new Promise(function (resolve, reject) {
-
- var file = "grammar";
- //if (language && language.length > 0)
- // file = language;
-
- var xhr = new XMLHttpRequest();
- xhr.open('GET', "voice/grammar/" + file + ".json", true);
-
- xhr.onload = function (e) {
-
- commandgroups = JSON.parse(this.response);
- resolve(commandgroups);
- }
-
- xhr.onerror = reject;
-
- xhr.send();
- });
- }
-
- ///