Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit f8a2749

Browse files
author
Marcel Gerber
committed
[SplitView] Removed unused vars
1 parent 98a79c1 commit f8a2749

31 files changed

+29
-132
lines changed

src/document/DocumentManager.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ define(function (require, exports, module) {
8787
DocumentModule = require("document/Document"),
8888
DeprecationWarning = require("utils/DeprecationWarning"),
8989
MainViewManager = require("view/MainViewManager"),
90-
ProjectManager = require("project/ProjectManager"),
91-
EditorManager = require("editor/EditorManager"),
9290
FileSyncManager = require("project/FileSyncManager"),
9391
FileSystem = require("filesystem/FileSystem"),
9492
PreferencesManager = require("preferences/PreferencesManager"),
@@ -281,20 +279,6 @@ define(function (require, exports, module) {
281279
MainViewManager.endTraversal();
282280
}
283281

284-
/**
285-
* Get the next or previous file in the working set, in MRU order (relative to currentDocument). May
286-
* return currentDocument itself if working set is length 1.
287-
* @deprecated use MainViewManager.traverseToNextViewByMRU() instead
288-
*/
289-
function getNextPrevFile(inc) {
290-
DeprecationWarning.deprecationWarning("Use MainViewManager.traverseToNextViewByMRU() instead of DocumentManager.getNextPrevFile()", true);
291-
var result = MainViewManager.traverseToNextViewByMRU(inc);
292-
if (result) {
293-
return result.file;
294-
}
295-
return null;
296-
}
297-
298282
/**
299283
* Cleans up any loose Documents whose only ref is its own master Editor, and that Editor is not
300284
* rooted in the UI anywhere. This can happen if the Editor is auto-created via Document APIs that

src/editor/EditorManager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ define(function (require, exports, module) {
5757
"use strict";
5858

5959
// Load dependent modules
60-
var _ = require("thirdparty/lodash"),
61-
Commands = require("command/Commands"),
60+
var Commands = require("command/Commands"),
6261
WorkspaceManager = require("view/WorkspaceManager"),
6362
PreferencesManager = require("preferences/PreferencesManager"),
6463
CommandManager = require("command/CommandManager"),

src/extensions/default/CloseOthers/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ define(function (require, exports, module) {
3030
var Menus = brackets.getModule("command/Menus"),
3131
CommandManager = brackets.getModule("command/CommandManager"),
3232
Commands = brackets.getModule("command/Commands"),
33-
DocumentManager = brackets.getModule("document/DocumentManager"),
3433
MainViewManager = brackets.getModule("view/MainViewManager"),
3534
Strings = brackets.getModule("strings"),
3635
workingSetListCmenu = Menus.getContextMenu(Menus.ContextMenuIds.WORKING_SET_CONTEXT_MENU),

src/extensions/default/RecentProjects/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ define(function (require, exports, module) {
3535
CommandManager = brackets.getModule("command/CommandManager"),
3636
KeyBindingManager = brackets.getModule("command/KeyBindingManager"),
3737
Menus = brackets.getModule("command/Menus"),
38-
EditorManager = brackets.getModule("editor/EditorManager"),
3938
MainViewManager = brackets.getModule("view/MainViewManager"),
4039
ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
4140
FileSystem = brackets.getModule("filesystem/FileSystem"),

src/extensions/samples/BracketsConfigCentral/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
25-
/*global define, brackets, window, $, Mustache, navigator */
25+
/*global define, brackets, $, Mustache */
2626

2727
define(function (require, exports, module) {
2828
"use strict";

src/project/FileSyncManager.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ define(function (require, exports, module) {
4646
var ProjectManager = require("project/ProjectManager"),
4747
DocumentManager = require("document/DocumentManager"),
4848
MainViewManager = require("view/MainViewManager"),
49-
EditorManager = require("editor/EditorManager"),
5049
Async = require("utils/Async"),
5150
Dialogs = require("widgets/Dialogs"),
5251
DefaultDialogs = require("widgets/DefaultDialogs"),

src/project/FileViewController.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ define(function (require, exports, module) {
5252
var DocumentManager = require("document/DocumentManager"),
5353
MainViewManager = require("view/MainViewManager"),
5454
CommandManager = require("command/CommandManager"),
55-
EditorManager = require("editor/EditorManager"),
5655
PerfUtils = require("utils/PerfUtils"),
5756
Commands = require("command/Commands"),
5857
DeprecationWarning = require("utils/DeprecationWarning");

src/project/ProjectManager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ define(function (require, exports, module) {
7676
Urls = require("i18n!nls/urls"),
7777
KeyEvent = require("utils/KeyEvent"),
7878
Async = require("utils/Async"),
79-
FileSyncManager = require("project/FileSyncManager"),
80-
EditorManager = require("editor/EditorManager");
79+
FileSyncManager = require("project/FileSyncManager");
8180

8281

8382
// Define the preference to decide how to sort the Project Tree files

src/project/WorkingSetSort.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ define(function (require, exports, module) {
7474
};
7575

7676
/**
77-
<<<<<<< HEAD
78-
=======
7977
* Events which the sort command will listen for to trigger a sort
8078
* @constant {string}
8179
* @private
@@ -97,7 +95,6 @@ define(function (require, exports, module) {
9795
var _LEGACY_SORT_PREF = "currentSort";
9896

9997
/**
100-
>>>>>>> upstream/master
10198
* Retrieves a Sort object by id
10299
* @param {(string|Command)} command A command ID or a command object.
103100
* @return {?Sort}

src/project/WorkingSetView.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ define(function (require, exports, module) {
3939
CommandManager = require("command/CommandManager"),
4040
Commands = require("command/Commands"),
4141
Menus = require("command/Menus"),
42-
DefaultMenus = require("command/DefaultMenus"),
4342
FileViewController = require("project/FileViewController"),
4443
ViewUtils = require("utils/ViewUtils"),
4544
paneListTemplate = require("text!htmlContent/working-set.html"),
@@ -661,7 +660,7 @@ define(function (require, exports, module) {
661660
var file = MainViewManager.getCurrentlyViewedFile(this.paneId);
662661

663662
// Iterate through working set list and update the selection on each
664-
var items = this.$openFilesContainer.find("ul").children().each(function () {
663+
this.$openFilesContainer.find("ul").children().each(function () {
665664
_updateListItemSelection(this, file);
666665
});
667666

@@ -788,9 +787,6 @@ define(function (require, exports, module) {
788787
* Initializes the WorkingSetView object
789788
*/
790789
WorkingSetView.prototype.init = function () {
791-
// Init DOM element
792-
var self = this;
793-
794790
this.$openFilesContainer = this.$el.find(".open-files-container");
795791
this.$workingSetListViewHeader = this.$el.find(".working-set-header");
796792
this.$gearMenu = this.$el.find(".working-set-option-btn");

0 commit comments

Comments
 (0)