From 8e4cfd91bcc1dea2b6f27c0a461ea6c6a87a2a87 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Mon, 5 Jul 2021 14:51:48 +0200 Subject: [PATCH] chore: remove unused imports --- .../threeSurferGlue/threeSurfer.component.ts | 10 ++++------ src/viewerModule/viewerCmp/viewerCmp.component.ts | 2 +- src/viewerModule/viewerStateBreadCrumb/module.ts | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts b/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts index 29f8fe0e1..47e58895e 100644 --- a/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts +++ b/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts @@ -3,8 +3,8 @@ import { EnumViewerEvt, IViewer, TViewerEvent } from "src/viewerModule/viewer.in import { TThreeSurferConfig, TThreeSurferMode } from "../types"; import { parseContext } from "../util"; import { retry, flattenRegions } from 'common/util' -import { BehaviorSubject, Observable, Subject } from "rxjs"; -import { debounceTime, filter, map, switchMap } from "rxjs/operators"; +import { Observable, Subject } from "rxjs"; +import { debounceTime, filter, switchMap } from "rxjs/operators"; import { ComponentStore } from "src/viewerModule/componentStore"; import { select, Store } from "@ngrx/store"; import { viewerStateChangeNavigation, viewerStateSetSelectedRegions } from "src/services/state/viewerState/actions"; @@ -234,9 +234,7 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, OnChanges, Af const cameraSub = this.cameraEv$.pipe( filter(v => !!v), debounceTime(160) - ).subscribe(ev => { - const { position } = ev - const { x, y, z } = position + ).subscribe(() => { const THREE = (window as any).ThreeSurfer.THREE @@ -251,7 +249,7 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, OnChanges, Af perspectiveOrientation: q.toArray(), perspectiveZoom: t.length() }) - } catch (e) { + } catch (_e) { // LockError, ignore } }) diff --git a/src/viewerModule/viewerCmp/viewerCmp.component.ts b/src/viewerModule/viewerCmp/viewerCmp.component.ts index 9c96eaa06..27cbc6a51 100644 --- a/src/viewerModule/viewerCmp/viewerCmp.component.ts +++ b/src/viewerModule/viewerCmp/viewerCmp.component.ts @@ -78,7 +78,7 @@ import { ContextMenuService, TContextMenuReg } from "src/contextMenuModule"; } }), // in case detailed requests - catchError((err, obs) => of(r[0])), + catchError((_err, _obs) => of(r[0])), shareReplay(1), ) }) diff --git a/src/viewerModule/viewerStateBreadCrumb/module.ts b/src/viewerModule/viewerStateBreadCrumb/module.ts index faae35e4d..0a0d4a53c 100644 --- a/src/viewerModule/viewerStateBreadCrumb/module.ts +++ b/src/viewerModule/viewerStateBreadCrumb/module.ts @@ -5,7 +5,6 @@ import { KgDatasetModule } from "src/atlasComponents/regionalFeatures/bsFeatures import { QuickTourModule } from "src/ui/quickTour"; import { AngularMaterialModule } from "src/ui/sharedModules/angularMaterial.module"; import { UtilModule } from "src/util"; -import { OVERWRITE_SHOW_DATASET_DIALOG_TOKEN } from "src/util/interfaces"; import { ViewerStateBreadCrumb } from "./breadcrumb/breadcrumb.component"; @NgModule({ -- GitLab