 sysPath = require 'path'
 async = require 'async'
 common = require './common'
-
-getTestFiles = (config) ->
-  isTestFile = (generatedFile) ->
-    generatedFile.lastIndexOf(sysPath.normalize('test/'), 0) is 0 and
-    generatedFile.lastIndexOf('vendor') is -1
-
-  joinPublic = (generatedFile) ->
-    sysPath.join(config.paths.public, generatedFile)
-
-  joinTo = config.files.javascripts.joinTo
-  files = if typeof joinTo is 'string' then [joinTo] else Object.keys(joinTo)
-  files.filter(isTestFile).map(joinPublic)
-
-cachedTestFiles = null
-
-findTestFiles = (config) ->
-  cachedTestFiles ?= getTestFiles config
+{concatSourceMaps} = require './source-map'
 
 sortAlphabetically = (a, b) ->
   if a < b

  _minify: (data, callback) ->
    if @config.optimize
      minify = @minifier?.optimize ? @minifier?.minify
      minify? data, @path, callback
    else
      callback null, data


  sortByConfig(paths, order).map (path) ->
    indexes[path]

# File which is generated by brunch from other files.
module.exports = class GeneratedFile
  #
