Skip to content

Commit

Permalink
refactor: removed deprecated way of enabling request and requestUri
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 6, 2020
1 parent ac1b0f6 commit 3076f32
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions lib/helpers/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,28 +485,6 @@ class Configuration {
const ENABLED_DRAFTS = new Set();
let throwDraft = false;

/* istanbul ignore if */
if (this.features.request && this.features.request.enabled) {
this.requestDeprecationNotice();
this.features.requestObjects.request = this.features.request.enabled;
}

/* istanbul ignore if */
if (this.features.requestUri && this.features.requestUri.enabled) {
this.requestUriDeprecationNotice();
this.features.requestObjects.requestUri = this.features.requestUri.enabled;
}

/* istanbul ignore if */
if (this.features.requestUri && this.features.requestUri.requireUriRegistration) {
this.requestUriDeprecationNotice();
this.features
.requestObjects.requireUriRegistration = this.features.requestUri.requireUriRegistration;
}

delete this.features.request;
delete this.features.requestUri;

Object.entries(this.features).forEach(([flag, { enabled, ack }]) => {
const { features: recognizedFeatures } = getDefaults();
if (!(flag in recognizedFeatures)) {
Expand Down Expand Up @@ -557,18 +535,6 @@ class Configuration {
}
}

Configuration.prototype.requestDeprecationNotice = deprecate(
/* istanbul ignore next */
() => {},
`features.request is deprecated, use features.requestObjects for configuring it instead, see ${docs('featuresrequestobjects')}`,
);

Configuration.prototype.requestUriDeprecationNotice = deprecate(
/* istanbul ignore next */
() => {},
`features.requestUri is deprecated, use features.requestObjects for configuring it instead, see ${docs('featuresrequestobjects')}`,
);

Configuration.prototype.pkceMethodsDeprecationNotice = deprecate(
/* istanbul ignore next */
() => {},
Expand Down

0 comments on commit 3076f32

Please sign in to comment.