aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/socket.io/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/socket.io/lib/util.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/socket.io/lib/util.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/socket.io/lib/util.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/socket.io/lib/util.js
deleted file mode 100644
index f7d9f2b4..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/socket.io/lib/util.js
+++ /dev/null
@@ -1,50 +0,0 @@
-
-/*!
- * socket.io-node
- * Copyright(c) 2011 LearnBoost <dev@learnboost.com>
- * MIT Licensed
- */
-
-/**
- * Module dependencies.
- */
-
-/**
- * Converts an enumerable to an array.
- *
- * @api public
- */
-
-exports.toArray = function (enu) {
- var arr = [];
-
- for (var i = 0, l = enu.length; i < l; i++)
- arr.push(enu[i]);
-
- return arr;
-};
-
-/**
- * Unpacks a buffer to a number.
- *
- * @api public
- */
-
-exports.unpack = function (buffer) {
- var n = 0;
- for (var i = 0; i < buffer.length; ++i) {
- n = (i == 0) ? buffer[i] : (n * 256) + buffer[i];
- }
- return n;
-}
-
-/**
- * Left pads a string.
- *
- * @api public
- */
-
-exports.padl = function (s,n,c) {
- return new Array(1 + n - s.length).join(c) + s;
-}
-