Skip to content

Commit 0eaa60b

Browse files
committed
Remove .sortingKey, it's gone in python, too
1 parent dbe7134 commit 0eaa60b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

fluent-syntax/src/ast.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@ export class Attribute extends SyntaxNode {
249249
this.id = id;
250250
this.value = value;
251251
}
252-
253-
get sortingKey() {
254-
return this.id.name;
255-
}
256252
}
257253

258254
export class Variant extends SyntaxNode {
@@ -263,13 +259,6 @@ export class Variant extends SyntaxNode {
263259
this.value = value;
264260
this.default = def;
265261
}
266-
267-
get sortingKey() {
268-
if (this.key instanceof NumberLiteral) {
269-
return this.key.value;
270-
}
271-
return this.key.name;
272-
}
273262
}
274263

275264
export class NamedArgument extends SyntaxNode {

0 commit comments

Comments
 (0)