Skip to content

Commit 0dc8956

Browse files
committed
Auto merge of #2123 - Turbo87:unused-trait, r=locks
mirage/crate: Remove unused `withVersion` trait The `withVersion` trait does not seem to be used anywhere in the code (anymore?). r? @locks
2 parents 88c9b93 + 50e870a commit 0dc8956

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

mirage/factories/crate.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Factory, trait } from 'ember-cli-mirage';
1+
import { Factory } from 'ember-cli-mirage';
22
import faker from 'faker';
33

44
export default Factory.extend({
@@ -30,10 +30,4 @@ export default Factory.extend({
3030
_extra_downloads: () => [],
3131
_owner_teams: () => [],
3232
_owner_users: () => [],
33-
34-
withVersion: trait({
35-
afterCreate(crate, server) {
36-
server.create('version', { crate: crate.id });
37-
},
38-
}),
3933
});

0 commit comments

Comments
 (0)