Skip to content

Commit

Permalink
fix: remove unused hide-hostname option
Browse files Browse the repository at this point in the history
(unused since eba219e)
  • Loading branch information
RomanHotsiy committed Feb 25, 2017
1 parent accd016 commit 7031176
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica
* **function**: A getter function. Must return a number representing the offset (in pixels);
* `suppress-warnings` - if set, warnings are not rendered at the top of documentation (they still are logged to the console).
* `lazy-rendering` - if set, enables lazy rendering mode in ReDoc. This mode is useful for APIs with big number of operations (e.g. > 50). In this mode ReDoc shows initial screen ASAP and then renders the rest operations asynchronously while showing progress bar on the top. Check out the [demo](\\rebilly.github.io/ReDoc) for the example.
* `hide-hostname` - if set, the protocol and hostname is not shown in the method definition.
* `expand-responses` - specify which responses to expand by default by response codes. Values should be passed as comma-separated list without spaces e.g. `expand-responses="200,201"`. Special value `"all"` expands all responses by default. Be careful: this option can slow-down documentation rendering time.

## Advanced usage
Expand Down
3 changes: 0 additions & 3 deletions lib/services/options.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const OPTION_NAMES = new Set([
'disableLazySchemas',
'specUrl',
'suppressWarnings',
'hideHostname',
'lazyRendering',
'expandResponses'
]);
Expand All @@ -23,7 +22,6 @@ interface Options {
disableLazySchemas?: boolean;
specUrl?: string;
suppressWarnings?: boolean;
hideHostname?: boolean;
lazyRendering?: boolean;
expandResponses?: Set<string> | 'all';
$scrollParent?: HTMLElement | Window;
Expand Down Expand Up @@ -89,7 +87,6 @@ export class OptionsService {

if (isString(this._options.disableLazySchemas)) this._options.disableLazySchemas = true;
if (isString(this._options.suppressWarnings)) this._options.suppressWarnings = true;
if (isString(this._options.hideHostname)) this._options.hideHostname = true;
if (isString(this._options.lazyRendering)) this._options.lazyRendering = true;
if (isString(this._options.expandResponses)) {
let str = this._options.expandResponses as string;
Expand Down

0 comments on commit 7031176

Please sign in to comment.