Skip to content

Commit 990a794

Browse files
committed
Remove dead method
1 parent d27a719 commit 990a794

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

src/lib/output/renderer.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ export class Renderer extends ChildableComponent<
113113
["default", DefaultTheme],
114114
]);
115115

116-
private unknownSymbolResolvers: Array<
117-
(ref: DeclarationReference) => string | undefined
118-
> = [];
119-
120116
/** @event */
121117
static readonly EVENT_BEGIN_PAGE = PageEvent.BEGIN;
122118
/** @event */
@@ -209,21 +205,6 @@ export class Renderer extends ChildableComponent<
209205
});
210206
}
211207

212-
/**
213-
* Marked as internal for now. Using this requires the internal `getSymbol()` method on ReferenceType.
214-
* Someday that needs to be fixed so that this can be made public. ReferenceTypes really shouldn't store
215-
* symbols so that we don't need to keep the program around forever.
216-
*
217-
* Remove in 0.24.
218-
* @internal
219-
*/
220-
attemptExternalResolution(ref: DeclarationReference): string | undefined {
221-
for (const resolver of this.unknownSymbolResolvers) {
222-
const resolved = resolver(ref);
223-
if (resolved) return resolved;
224-
}
225-
}
226-
227208
/**
228209
* Render the given project reflection to the specified output directory.
229210
*
@@ -392,4 +373,3 @@ export class Renderer extends ChildableComponent<
392373
// HACK: THIS HAS TO STAY DOWN HERE
393374
// 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.
394375
import "./plugins";
395-
import type { DeclarationReference } from "../converter/comments/declarationReference";

src/lib/output/themes/default/DefaultThemeRenderContext.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export class DefaultThemeRenderContext {
8080
* Will be removed in 0.24.
8181
*/
8282
attemptExternalResolution = (type: NeverIfInternal<ReferenceType>) => {
83-
return this.theme.owner.attemptExternalResolution(
84-
(type as ReferenceType).toDeclarationReference()
85-
);
83+
return (type as ReferenceType).externalUrl;
8684
};
8785

8886
reflectionTemplate = bind(reflectionTemplate, this);

0 commit comments

Comments
 (0)