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

Commit e0c551d

Browse files
author
dloverin
committed
remove unused hinting for globals
1 parent d96d73d commit e0c551d

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

src/extensions/default/JavaScriptCodeHints/HintUtils.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,6 @@ define(function (require, exports, module) {
111111
return name + "." + EVENT_TAG;
112112
}
113113

114-
/*
115-
* Annotate a list of tokens as being global variables
116-
*
117-
* @param {Array.<Object>} globals - list of identifier tokens
118-
* @return {Array.<Object>} - the input array; to each object in the array a
119-
* new global {boolean} property has been added to indicate that it is
120-
* a global variable.
121-
*/
122-
function annotateGlobals(globals) {
123-
return globals.map(function (t) {
124-
t.global = true;
125-
return t;
126-
});
127-
}
128-
129114
/*
130115
* Annotate a list of tokens as literals of a particular kind;
131116
* if string literals, annotate with an appropriate delimiter.
@@ -196,7 +181,6 @@ define(function (require, exports, module) {
196181
exports.splitPath = splitPath;
197182
exports.eventName = eventName;
198183
exports.annotateLiterals = annotateLiterals;
199-
exports.annotateGlobals = annotateGlobals;
200184
exports.KEYWORDS = KEYWORDS;
201185
exports.LITERALS = LITERALS;
202186
exports.LANGUAGE_ID = LANGUAGE_ID;

src/extensions/default/JavaScriptCodeHints/main.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ define(function (require, exports, module) {
103103
$hintObj.addClass("guess-hint");
104104
}
105105

106-
// is the token a global variable?
107-
if (token.global) {
108-
$hintObj.addClass("global-hint");
109-
}
110-
111106
// is the token a keyword?
112107
if (token.keyword) {
113108
$hintObj.addClass("keyword-hint");

src/extensions/default/JavaScriptCodeHints/styles/brackets-js-hints.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
.brackets-js-hints.property-hint {
4444
}
4545

46-
.brackets-js-hints.global-hint {
47-
font-style: italic;
48-
}
49-
5046
.brackets-js-hints.literal-hint {
5147
color: rgb(50, 50, 50); /* dark grey */
5248
}

0 commit comments

Comments
 (0)