From 659c6bbd564a5234ca20d23ca0934517839e3dfd Mon Sep 17 00:00:00 2001 From: Corey Johnson & Kevin Sawicki Date: Fri, 8 Feb 2013 11:59:30 -0800 Subject: [PATCH] Remove old style package support All packages have been migrated to the new style. --- src/app/package.coffee | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/app/package.coffee b/src/app/package.coffee index 89ece0a15..5a7897347 100644 --- a/src/app/package.coffee +++ b/src/app/package.coffee @@ -1,5 +1,4 @@ fs = require 'fs' -_ = require 'underscore' module.exports = class Package @@ -7,25 +6,13 @@ class Package TextMatePackage = require 'text-mate-package' AtomPackage = require 'atom-package' - oldStylePackage = _.find fs.list(path), (filePath) => - /index\.coffee$/.test filePath - if TextMatePackage.testName(path) new TextMatePackage(path) else - if not oldStylePackage - new AtomPackage(path) - else - try - PackageClass = require path - new PackageClass(path) if typeof PackageClass is 'function' - catch e - console.warn "Failed to load package at '#{path}'", e.stack + new AtomPackage(path) name: null path: null constructor: (@path) -> @name = fs.base(@path) - - activate: (rootView) ->