diff --git a/is-monitor-frontend/src/app/is.service.ts b/is-monitor-frontend/src/app/is.service.ts index 85df1fd..094a315 100644 --- a/is-monitor-frontend/src/app/is.service.ts +++ b/is-monitor-frontend/src/app/is.service.ts @@ -4,12 +4,9 @@ import { Observable, of } from 'rxjs'; import { catchError } from 'rxjs/operators'; import { TypeDefinition } from './is-model/types/TypeDefinition'; import { types } from './types'; -import { list } from './list'; -import { Facet } from './is-model/reference/entities/Facet'; import { Resource } from './is-model/reference/entities/Resource'; import { resources } from './resources'; - @Injectable({ providedIn: 'root' }) @@ -51,17 +48,8 @@ export class IsService { ).subscribe(data => callback(data)); } - public getIdentifyingFacets(resourceType: string, callback: (instances: Facet[]) => void): void { - const url = this.queryURL + resourceType + '?polymorphic=true&gcube-token=' + this.token; - // const observable: Observable = of(types); - const observable: Observable = this.httpClient.get(url); - observable.pipe( - catchError(this.handleError('getIdentifyingFacets()', list)) - ).subscribe(data => callback(data)); - } - public getResourceInstances(resourceType: string, callback: (instances: Resource[]) => void): void { - const url = this.queryURL + resourceType + '?polymorphic=true&gcube-token=' + this.token; + const url = this.queryURL + resourceType + '?polymorphic=true&gcube-token=' + this.token; // const observable: Observable = of(types); const observable: Observable = this.httpClient.get(url); observable.pipe(