Skip to content

Commit

Permalink
remove unused import and unnecessary deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
copleykj committed Sep 28, 2024
1 parent 7a05dfc commit 54e1b6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions lib/instance.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
import { PickerImp } from './implementation';

Meteor.startup(() => {
console.debug('communitypackages:picker has been deprecated! It is still fine to use with Meteor 2, but for Meteor 3 you can use the webapp package itself as it now has all the capabilities that Picker was made to compensate for.')
console.debug('See the repository for more information: https://github.com/Meteor-Community-Packages/picker')
})

export const Picker = new PickerImp();
WebApp.handlers.use(async function(req, res, next) {
await Picker._dispatch(req, res, next);
Expand Down
3 changes: 0 additions & 3 deletions test/instance.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { Picker } from 'meteor/communitypackages:picker';
// TODO replace HTTP with fetch
import { HTTP } from 'meteor/http';
import { Random } from 'meteor/random';
import { Meteor } from 'meteor/meteor';
import { fetch } from 'meteor/fetch';
import { check } from 'meteor/check';
import { should, assert } from 'chai';

should();
Expand Down

0 comments on commit 54e1b6b

Please sign in to comment.