Skip to content

Commit

Permalink
[CLEANUP] Remove ajax and ajaxOptions deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed Mar 29, 2018
1 parent ff6822f commit dcc96ee
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions addon/adapters/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
MapWithDefault
} from '../-private';
import { instrument } from 'ember-data/-debug';
import { warn, deprecate } from '@ember/debug';
import { warn } from '@ember/debug';
import { DEBUG } from '@glimmer/env';

const Promise = EmberPromise;
Expand Down Expand Up @@ -1173,26 +1173,6 @@ const RESTAdapter = Adapter.extend(BuildURLMixin, {
}

return query;
},

_hasCustomizedAjax() {
if (this.ajax !== RESTAdapter.prototype.ajax) {
deprecate('RESTAdapter#ajax has been deprecated please use. `methodForRequest`, `urlForRequest`, `headersForRequest` or `dataForRequest` instead.', false, {
id: 'ds.rest-adapter.ajax',
until: '3.0.0'
});
return true;
}

if (this.ajaxOptions !== RESTAdapter.prototype.ajaxOptions) {
deprecate('RESTAdapter#ajaxOptions has been deprecated please use. `methodForRequest`, `urlForRequest`, `headersForRequest` or `dataForRequest` instead.', false, {
id: 'ds.rest-adapter.ajax-options',
until: '3.0.0'
});
return true;
}

return false;
}
});

Expand Down

0 comments on commit dcc96ee

Please sign in to comment.