From a23004fa8b406101b286b61b291e5b120cf54102 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 23 Jun 2014 05:49:43 -0400 Subject: [PATCH] feature(main) rm getVolumes --- lib/server/main.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/server/main.js b/lib/server/main.js index 8fe72a56..d64c70e4 100644 --- a/lib/server/main.js +++ b/lib/server/main.js @@ -100,8 +100,6 @@ */ global.cloudcmd.main = exports; - exports.VOLUMES = getVolumes(), - /* Additional Modules */ exports.cloudfunc = CloudFunc = librequire('cloudfunc'), exports.pipe = pipe = srvrequire('pipe'), @@ -170,20 +168,6 @@ */ function isWin32() { return process.platform === 'win32'; } - /** - * get volumes if win32 or get nothing if nix - */ - function getVolumes() { - var lRet = ISWIN32 ? [] : '/'; - - if (ISWIN32) - srvrequire('win').getVolumes(function(error, volumes) { - Util.log(error, volumes); - }); - - return lRet; - } - /** * Функция создаёт заголовки файлов * в зависимости от расширения файла