From fa266a2e26a162830fe13d3d1cd5ee4aa6908fa6 Mon Sep 17 00:00:00 2001 From: Deforder Date: Sat, 14 Jan 2017 18:09:57 +0700 Subject: [PATCH] Removed unuse function --- src/beautifiers/js-beautify.coffee | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/beautifiers/js-beautify.coffee b/src/beautifiers/js-beautify.coffee index fe9c464..d2119ab 100644 --- a/src/beautifiers/js-beautify.coffee +++ b/src/beautifiers/js-beautify.coffee @@ -65,23 +65,3 @@ module.exports = class JSBeautify extends Beautifier reject(err) ) - - # Retrieves the default line ending based upon the Atom configuration - # `line-ending-selector.defaultLineEnding`. If the Atom configuration - # indicates "OS Default", the `process.platform` is queried, returning - # CRLF for Windows systems and LF for all other systems. - # Code modified from atom/line-ending-selector - # returns: The correct line-ending character sequence based upon the Atom - # configuration, or `null` if the Atom line ending configuration was not - # recognized. - # see: https://github.com/atom/line-ending-selector/blob/master/lib/main.js - getDefaultLineEnding= -> - switch atom.config.get('line-ending-selector.defaultLineEnding') - when 'LF' - return '\n' - when 'CRLF' - return '\r\n' - when 'OS Default' - return if process.platform is 'win32' then '\r\n' else '\n' - else - return null