From 965fd8fc19f0b7bc65e6085867635c65b0fe4027 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 21 Oct 2015 10:20:38 -0400 Subject: [PATCH] Remove unused getOperatingSystem function --- build/utils/helpers.js | 9 --------- lib/utils/helpers.coffee | 5 ----- 2 files changed, 14 deletions(-) diff --git a/build/utils/helpers.js b/build/utils/helpers.js index 93a55f80..0e03f2a0 100644 --- a/build/utils/helpers.js +++ b/build/utils/helpers.js @@ -21,15 +21,6 @@ }).object().value(); }; - exports.getOperatingSystem = function() { - var platform; - platform = os.platform(); - if (platform === 'darwin') { - platform = 'osx'; - } - return platform; - }; - exports.stateToString = function(state) { var percentage, result; percentage = _.str.lpad(state.percentage, 3, '0') + '%'; diff --git a/lib/utils/helpers.coffee b/lib/utils/helpers.coffee index 489feece..3d759cba 100644 --- a/lib/utils/helpers.coffee +++ b/lib/utils/helpers.coffee @@ -14,11 +14,6 @@ exports.getGroupDefaults = (group) -> .object() .value() -exports.getOperatingSystem = -> - platform = os.platform() - platform = 'osx' if platform is 'darwin' - return platform - exports.stateToString = (state) -> percentage = _.str.lpad(state.percentage, 3, '0') + '%' result = "#{chalk.blue(percentage)} #{chalk.cyan(state.operation.command)}"