diff --git a/spec/theme-manager-spec.coffee b/spec/theme-manager-spec.coffee index 31b935671..c5f84348a 100644 --- a/spec/theme-manager-spec.coffee +++ b/spec/theme-manager-spec.coffee @@ -12,8 +12,6 @@ describe "ThemeManager", -> configDirPath = NylasEnv.getConfigDirPath() beforeEach -> - cache = NylasEnv.fileListCache() - cache.lessCacheImportPaths = null spyOn(console, "log") spyOn(console, "warn") spyOn(console, "error") diff --git a/src/browser/file-list-cache.es6 b/src/browser/file-list-cache.es6 index f5f686087..b4dcf77c4 100644 --- a/src/browser/file-list-cache.es6 +++ b/src/browser/file-list-cache.es6 @@ -6,7 +6,5 @@ export default class FileListCache { constructor() { this.imageData = "{}" // A JSON stringified hash this.packagePaths = [] - this.lessCacheImportPaths = [] - this.lessCacheImportedFiles = [] } } diff --git a/src/less-compile-cache.coffee b/src/less-compile-cache.coffee index e1fa0fc14..a6bab610b 100644 --- a/src/less-compile-cache.coffee +++ b/src/less-compile-cache.coffee @@ -27,12 +27,9 @@ class LessCompileCache # and every importPath. If we already have the imports, then load it # from our backend FileListCache. setImportPaths: (importPaths=[]) -> - fileCache = NylasEnv.fileListCache() - fileCacheImportPaths = fileCache.lessCacheImportPaths ? [] fullImportPaths = importPaths.concat(@lessSearchPaths) - if not _.isEqual(fullImportPaths, fileCacheImportPaths) + if not _.isEqual(fullImportPaths, @cache.importPaths) @cache.setImportPaths(fullImportPaths) - fileCache.lessCacheImportPaths = fullImportPaths read: (stylesheetPath) -> @cache.readFileSync(stylesheetPath)