Skip to content

Commit 6060f2e

Browse files
committed
remove unused alias edge
1 parent c369b28 commit 6060f2e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ module API {
317317
or
318318
exists(Node pred, ApiLabel lbl, string predpath |
319319
Impl::edge(pred, lbl, this) and
320-
not lbl instanceof Label::LabelAlias and
321320
predpath = pred.getAPath(length - 1) and
322321
exists(string space | if length = 1 then space = "" else space = " " |
323322
result = "(" + lbl + space + predpath + ")" and
@@ -1033,7 +1032,6 @@ module API {
10331032
MkLabelReturn() or
10341033
MkLabelPromised() or
10351034
MkLabelPromisedError() or
1036-
MkLabelAlias() or
10371035
MkLabelEntryPoint(API::EntryPoint e)
10381036

10391037
class LabelEntryPoint extends ApiLabel {
@@ -1046,12 +1044,6 @@ module API {
10461044
override string toString() { result = e }
10471045
}
10481046

1049-
class LabelAlias extends ApiLabel {
1050-
LabelAlias() { this = MkLabelAlias() }
1051-
1052-
override string toString() { result = "" }
1053-
}
1054-
10551047
class LabelPromised extends ApiLabel {
10561048
LabelPromised() { this = MkLabelPromised() }
10571049

@@ -1174,9 +1166,6 @@ module API {
11741166
/** Gets the `return` edge label. */
11751167
LabelReturn return() { any() }
11761168

1177-
/** Gets the `alias` (empty) edge label. */
1178-
LabelAlias alias() { any() }
1179-
11801169
/** Gets the `promised` edge label connecting a promise to its contained value. */
11811170
MkLabelPromised promised() { any() }
11821171

0 commit comments

Comments
 (0)