]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/tidep0084.git/blobdiff - example/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/mqtt/node_modules/commist/node_modules/leven/index.js
Updated Sensor To Cloud design to have an easy to use setup GUI on the
[apps/tidep0084.git] / example / iot-gateway / node_modules / aws-iot-device-sdk / node_modules / mqtt / node_modules / commist / node_modules / leven / index.js
diff --git a/example/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/mqtt/node_modules/commist/node_modules/leven/index.js b/example/iot-gateway/node_modules/aws-iot-device-sdk/node_modules/mqtt/node_modules/commist/node_modules/leven/index.js
deleted file mode 100644 (file)
index ff31aef..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-var arr = [];
-var charCodeCache = [];
-
-module.exports = function (a, b) {
-       if (a === b) {
-               return 0;
-       }
-
-       var aLen = a.length;
-       var bLen = b.length;
-
-       if (aLen === 0) {
-               return bLen;
-       }
-
-       if (bLen === 0) {
-               return aLen;
-       }
-
-       var bCharCode;
-       var ret;
-       var tmp;
-       var tmp2;
-       var i = 0;
-       var j = 0;
-
-       while (i < aLen) {
-               charCodeCache[i] = a.charCodeAt(i);
-               arr[i] = ++i;
-       }
-
-       while (j < bLen) {
-               bCharCode = b.charCodeAt(j);
-               tmp = j++;
-               ret = j;
-
-               for (i = 0; i < aLen; i++) {
-                       tmp2 = bCharCode === charCodeCache[i] ? tmp : tmp + 1;
-                       tmp = arr[i];
-                       ret = arr[i] = tmp > ret ? tmp2 > ret ? ret + 1 : tmp2 : tmp2 > tmp ? tmp + 1 : tmp2;
-               }
-       }
-
-       return ret;
-};