diff --git a/src/app/components/favorites/favorites.component.ts b/src/app/components/favorites/favorites.component.ts index a1c999a15..22b885ad1 100644 --- a/src/app/components/favorites/favorites.component.ts +++ b/src/app/components/favorites/favorites.component.ts @@ -76,10 +76,6 @@ export class FavoritesComponent extends PageComponent implements OnInit, OnDestr this.subscriptions.forEach(s => s.unsubscribe()); } - fetchNodes(): void { - // todo: remove once all views migrate to native data source - } - navigate(favorite: MinimalNodeEntryEntity) { const { isFolder, id } = favorite; diff --git a/src/app/components/libraries/libraries.component.spec.ts b/src/app/components/libraries/libraries.component.spec.ts index ec4a7d74b..71bfd0c85 100644 --- a/src/app/components/libraries/libraries.component.spec.ts +++ b/src/app/components/libraries/libraries.component.spec.ts @@ -179,7 +179,6 @@ describe('Libraries Routed Component', () => { beforeEach(() => { routerSpy = spyOn(router, 'navigate'); - spyOn(component, 'fetchNodes').and.callFake(val => val); }); it('does not navigate when id is not passed', () => { diff --git a/src/app/components/libraries/libraries.component.ts b/src/app/components/libraries/libraries.component.ts index 6870d14e1..b0a1d1969 100644 --- a/src/app/components/libraries/libraries.component.ts +++ b/src/app/components/libraries/libraries.component.ts @@ -93,10 +93,6 @@ export class LibrariesComponent extends PageComponent { } } - fetchNodes(): void { - // todo: remove once all views migrate to native data source - } - onSortingChanged(event: CustomEvent) { this.preferences.set(`${this.prefix}.sorting.key`, event.detail.key || 'modifiedAt'); this.preferences.set(`${this.prefix}.sorting.direction`, event.detail.direction || 'desc'); diff --git a/src/app/components/page.component.spec.ts b/src/app/components/page.component.spec.ts index 5d0c6dfa3..b33acf424 100644 --- a/src/app/components/page.component.spec.ts +++ b/src/app/components/page.component.spec.ts @@ -31,10 +31,6 @@ class TestClass extends PageComponent { constructor() { super(null); } - - fetchNodes(parentNodeId?: string, options?: any) { - // abstract - } } describe('PageComponent', () => { diff --git a/src/app/components/page.component.ts b/src/app/components/page.component.ts index 48e102130..d19664f91 100644 --- a/src/app/components/page.component.ts +++ b/src/app/components/page.component.ts @@ -36,8 +36,6 @@ export abstract class PageComponent { return node.isLocked || (node.properties && node.properties['cm:lockType'] === 'READ_ONLY_LOCK'); } - abstract fetchNodes(parentNodeId?: string, options?: any): void; - constructor(protected preferences: UserPreferencesService) { } diff --git a/src/app/components/recent-files/recent-files.component.spec.ts b/src/app/components/recent-files/recent-files.component.spec.ts index f8b1af991..c87da50a5 100644 --- a/src/app/components/recent-files/recent-files.component.spec.ts +++ b/src/app/components/recent-files/recent-files.component.spec.ts @@ -156,10 +156,6 @@ describe('RecentFiles Routed Component', () => { }); describe('onNodeDoubleClick()', () => { - beforeEach(() => { - spyOn(component, 'fetchNodes').and.callFake(val => val); - }); - it('open preview if node is file', () => { spyOn(router, 'navigate').and.stub(); const node: any = { id: 'node-id', isFile: true }; diff --git a/src/app/components/recent-files/recent-files.component.ts b/src/app/components/recent-files/recent-files.component.ts index 2d2dfe455..60f79ae0e 100644 --- a/src/app/components/recent-files/recent-files.component.ts +++ b/src/app/components/recent-files/recent-files.component.ts @@ -81,10 +81,6 @@ export class RecentFilesComponent extends PageComponent implements OnInit, OnDes } } - fetchNodes(): void { - // todo: remove once all views migrate to native data source - } - refresh(): void { if (this.documentList) { this.documentList.reload(); diff --git a/src/app/components/shared-files/shared-files.component.spec.ts b/src/app/components/shared-files/shared-files.component.spec.ts index 8bcc22091..eaf647a2c 100644 --- a/src/app/components/shared-files/shared-files.component.spec.ts +++ b/src/app/components/shared-files/shared-files.component.spec.ts @@ -158,7 +158,6 @@ describe('SharedFilesComponent', () => { describe('onNodeDoubleClick()', () => { beforeEach(() => { - spyOn(component, 'fetchNodes').and.callFake(val => val); fixture.detectChanges(); }); diff --git a/src/app/components/shared-files/shared-files.component.ts b/src/app/components/shared-files/shared-files.component.ts index 89ab80765..6ea058afe 100644 --- a/src/app/components/shared-files/shared-files.component.ts +++ b/src/app/components/shared-files/shared-files.component.ts @@ -84,10 +84,6 @@ export class SharedFilesComponent extends PageComponent implements OnInit, OnDes } } - fetchNodes(parentNodeId?: string) { - // todo: remove once all views migrate to native data source - } - /** @override */ isFileSelected(selection: Array): boolean { return selection && selection.length === 1;