Skip to content

Commit cd92237

Browse files
committed
fix: remove dead code
1 parent 712abe1 commit cd92237

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

app/controllers/me/pending-invites.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,9 @@ import { reads } from 'macro-decorators';
66
import { pagination } from '../../utils/pagination';
77

88
export default class PendingInvitesController extends Controller {
9-
queryParams = ['page', 'per_page', 'sort'];
9+
queryParams = ['page'];
1010
@tracked page = '1';
11-
@tracked per_page = 50;
12-
@tracked sort = 'alpha';
1311

1412
@reads('model.meta.total') totalItems;
1513
@pagination() pagination;
16-
17-
get currentSortBy() {
18-
if (this.sort === 'downloads') {
19-
return 'All-Time Downloads';
20-
} else if (this.sort === 'recent-downloads') {
21-
return 'Recent Downloads';
22-
} else if (this.sort === 'recent-updates') {
23-
return 'Recent Updates';
24-
} else if (this.sort === 'new') {
25-
return 'Newly Added';
26-
} else {
27-
return 'Alphabetical';
28-
}
29-
}
3014
}

app/routes/me/pending-invites.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default class PendingInvitesRoute extends AuthenticatedRoute {
77

88
queryParams = {
99
page: { refreshModel: true },
10-
sort: { refreshModel: true },
1110
};
1211

1312
model() {

mirage/route-handlers/crates.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import { compareIsoDates, compareStrings, notFound, pageParams } from './-utils'
55

66
export function list(schema, request) {
77
const { start, end } = pageParams(request);
8-
console.log({
9-
start,
10-
end,
11-
});
8+
129
let crates = schema.crates.all();
1310

1411
if (request.queryParams.following === '1') {

0 commit comments

Comments
 (0)