 
     @writeFile filePath, js
     @writeFile "#{filePath}.map", v3SourceMap if v3SourceMap
-
-  getParams: (filePath, fileContent) ->
-    serialized = @getSerializedParams fileContent
-    return unless serialized?
-
-    params = file: filePath
-    for param in serialized.split /\s*,\s*/
-      [key, value] = param.split /\s*:\s*/
-      continue unless key? and value?
-      params[key] = value
-
-    params.compress = @parseBoolean params.compress
-    params.sourcemap = @parseBoolean params.sourcemap
-    return params if params.out or params.main
-
-  getSerializedParams: (fileContent) ->
-    serialized = if fileContent.match /^#!/
-      fileContent.match /\n.*\n/
-    else
-      fileContent.match /^.*\n/
-    return unless serialized?
-    serialized[0].replace(/^#\s+/, '').replace(/\n/g, '')
 
   writeFile: (filePath, content) ->
     mkdirp ?= require 'mkdirp'

    renderer = coffee.compile source,
      sourceMap: params.sourcemap

    filePath = path.resolve path.dirname(params.file), params.out
    if params.sourcemap
      {js, v3SourceMap} = renderer
      js += "\n//# sourceMappingURL=#{filePath}.map"

path = require 'path'
[mkdirp, coffee, uglify] = []

class CoffeeAutocompile
  activate: ->
    @disposable = atom.commands.add 'atom-workspace', 'core:save', @handleSave

