From 31a2b6a66ed9ba6fcab9ff15598307693feb643b Mon Sep 17 00:00:00 2001 From: Seongjae Lee Date: Sun, 3 Jul 2016 11:06:53 -0700 Subject: [PATCH] Remove unnecessary code from note-cache.coffee --- lib/note-cache.coffee | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/note-cache.coffee b/lib/note-cache.coffee index 968e3b1..e3bc952 100644 --- a/lib/note-cache.coffee +++ b/lib/note-cache.coffee @@ -89,24 +89,6 @@ class NoteCache _assert: -> throw new Error "cache length is wrong; #{Object.keys(@_noteCache).length} #{@_noteSortedList} #{@_maxItem}" unless Object.keys(@_noteCache).length == Math.min(@_maxItem, @_noteSortedList.length) throw new Error 'list length is wrong' unless @_noteSortedList.length == Object.keys(@_noteStats).length - - # _buildNoteStats: -> - # ret = {} - # visited = [fs.absolute(@_baseDirectory)] - # fs.traverseTreeSync( - # @_baseDirectory, - # (filePath) => - # fileName = path.basename(filePath) - # if @_extensions.indexOf(path.extname(fileName)) >= 0 - # noteId = path.relative(@_baseDirectory, filePath) - # ret[noteId] = fs.statSync(filePath).mtime.getTime() - # , - # (directoryPath) => - # return false if fs.absolute(directoryPath) in visited - # visited.push(fs.absolute(directoryPath)) - # return true - # ) - # ret _buildNoteSortedList: -> @_noteSortedList = Object.keys(@_noteStats)