Merge pull request #247 from resin-io/jvioti/refactor/os

Remove unused getOperatingSystem function
This commit is contained in:
Juan Cruz Viotti 2015-10-21 11:43:19 -04:00
commit 822632718f
2 changed files with 0 additions and 14 deletions

View File

@ -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') + '%';

View File

@ -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)}"