Skip to content

Commit

Permalink
Remove dead method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Sep 3, 2022
1 parent d27a719 commit 990a794
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
20 changes: 0 additions & 20 deletions src/lib/output/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ export class Renderer extends ChildableComponent<
["default", DefaultTheme],
]);

private unknownSymbolResolvers: Array<
(ref: DeclarationReference) => string | undefined
> = [];

/** @event */
static readonly EVENT_BEGIN_PAGE = PageEvent.BEGIN;
/** @event */
Expand Down Expand Up @@ -209,21 +205,6 @@ export class Renderer extends ChildableComponent<
});
}

/**
* Marked as internal for now. Using this requires the internal `getSymbol()` method on ReferenceType.
* Someday that needs to be fixed so that this can be made public. ReferenceTypes really shouldn't store
* symbols so that we don't need to keep the program around forever.
*
* Remove in 0.24.
* @internal
*/
attemptExternalResolution(ref: DeclarationReference): string | undefined {
for (const resolver of this.unknownSymbolResolvers) {
const resolved = resolver(ref);
if (resolved) return resolved;
}
}

/**
* Render the given project reflection to the specified output directory.
*
Expand Down Expand Up @@ -392,4 +373,3 @@ export class Renderer extends ChildableComponent<
// HACK: THIS HAS TO STAY DOWN HERE
// if you try to move it up to the top of the file, then you'll run into stuff being used before it has been defined.
import "./plugins";
import type { DeclarationReference } from "../converter/comments/declarationReference";
4 changes: 1 addition & 3 deletions src/lib/output/themes/default/DefaultThemeRenderContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ export class DefaultThemeRenderContext {
* Will be removed in 0.24.
*/
attemptExternalResolution = (type: NeverIfInternal<ReferenceType>) => {
return this.theme.owner.attemptExternalResolution(
(type as ReferenceType).toDeclarationReference()
);
return (type as ReferenceType).externalUrl;
};

reflectionTemplate = bind(reflectionTemplate, this);
Expand Down

0 comments on commit 990a794

Please sign in to comment.