     outputFilePath = @alterParentPath(rootFilePath, outputFilePath) if @shouldMoveResult()
     outputFilePath
 
-  alterParentPath: (targetPath, originalPath) ->
-    targetDir = path.dirname(targetPath)
-    path.join(targetDir, path.basename(originalPath))
-
   shouldMoveResult: ->
     atom.config.get('latex.moveResultToSourceDirectory')
 


    return true

  # TODO: Improve overall code quality within this function.
  clean: ->
    editor = atom.workspace.getActivePaneItem()
    filePath = editor?.getPath()

        console.info 'LaTeX clean removed: ' + fileToRemove
      else
        console.info 'LaTeX clean did not find: ' + fileToRemove

  getBuilder: ->
    new LatexmkBuilder()
