From 248ca5fd6d3a4fc0b7fe6d3a6c9abcdd64042359 Mon Sep 17 00:00:00 2001 From: Anatoly Shikolay Date: Mon, 3 Jun 2013 08:38:35 +0900 Subject: [PATCH] remove unused local vars and redundant var --- src/document/DocumentCommandHandlers.js | 3 +-- src/document/DocumentManager.js | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/document/DocumentCommandHandlers.js b/src/document/DocumentCommandHandlers.js index 27231fc0ba8..671a5e1605c 100644 --- a/src/document/DocumentCommandHandlers.js +++ b/src/document/DocumentCommandHandlers.js @@ -904,8 +904,7 @@ define(function (require, exports, module) { // Init DOM elements AppInit.htmlReady(function () { - var $titleContainerToolbar = $("#titlebar"); - _$titleContainerToolbar = $titleContainerToolbar; + _$titleContainerToolbar = $("#titlebar"); _$titleWrapper = $(".title-wrapper", _$titleContainerToolbar); _$title = $(".title", _$titleWrapper); _$dirtydot = $(".dirty-dot", _$titleWrapper); diff --git a/src/document/DocumentManager.js b/src/document/DocumentManager.js index a7735e25a3c..600f24fc5b1 100644 --- a/src/document/DocumentManager.js +++ b/src/document/DocumentManager.js @@ -1223,8 +1223,6 @@ define(function (require, exports, module) { * @param {string} path The path of the file/folder that has been deleted */ function notifyPathDeleted(path) { - var i, docPath; - /* FileSyncManager.syncOpenDocuments() does all the work of closing files in the working set and notifying the user of any unsaved changes. */ FileSyncManager.syncOpenDocuments(Strings.FILE_DELETED_TITLE);