From a7ce3cc80f0f356ac482e4e611eec0eab53dfbb1 Mon Sep 17 00:00:00 2001 From: Shuaib Hasan Akib Date: Thu, 3 Jul 2025 01:45:14 +0600 Subject: [PATCH] refactor(docs-infra): removed unused imports (#62441) Cleans up instances of unused imports in a few shared docs components. PR Close #62441 --- .../components/search-dialog/search-dialog.component.ts | 2 +- .../components/viewers/docs-viewer/docs-viewer.component.ts | 4 +--- adev/shared-docs/services/table-of-contents-loader.service.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/adev/shared-docs/components/search-dialog/search-dialog.component.ts b/adev/shared-docs/components/search-dialog/search-dialog.component.ts index 7602667b1bc..bca6f27a341 100644 --- a/adev/shared-docs/components/search-dialog/search-dialog.component.ts +++ b/adev/shared-docs/components/search-dialog/search-dialog.component.ts @@ -84,7 +84,7 @@ export class SearchDialog { this.searchQuery.set(value); }); - // Thinkig about refactoring this to a single afterRenderEffect ? + // Thinking about refactoring this to a single afterRenderEffect ? // Answer: It won't have the same behavior effect(() => { this.items(); diff --git a/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts b/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts index f49f046d0a9..574698bc6df 100644 --- a/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts +++ b/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule, DOCUMENT, isPlatformBrowser, Location} from '@angular/common'; +import {DOCUMENT, isPlatformBrowser, Location} from '@angular/common'; import { ApplicationRef, ChangeDetectionStrategy, @@ -18,9 +18,7 @@ import { EnvironmentInjector, inject, Injector, - Input, PLATFORM_ID, - SimpleChanges, Type, ViewContainerRef, ViewEncapsulation, diff --git a/adev/shared-docs/services/table-of-contents-loader.service.ts b/adev/shared-docs/services/table-of-contents-loader.service.ts index e3fb9153c5b..de84933cd79 100644 --- a/adev/shared-docs/services/table-of-contents-loader.service.ts +++ b/adev/shared-docs/services/table-of-contents-loader.service.ts @@ -7,10 +7,9 @@ */ import {DOCUMENT} from '@angular/common'; -import {inject, signal, Injectable, PLATFORM_ID, DestroyRef} from '@angular/core'; +import {inject, signal, Injectable, DestroyRef} from '@angular/core'; import {TableOfContentsItem, TableOfContentsLevel} from '../interfaces/index'; -import {on} from 'events'; /** * Name of an attribute that is set on an element that should be