From b9cce3311384df236ad7f48e6679be5d22b65343 Mon Sep 17 00:00:00 2001 From: Alexandr Stelnykovych Date: Fri, 7 Nov 2025 16:50:18 +0200 Subject: [PATCH] UI: Removed sources for "runtime:subsystems/" status API calls It looks like they are not used anymore and replaced by "runtime:system/status" --- .../src/app/services/status.service.ts | 49 +------------------ 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/desktop/angular/src/app/services/status.service.ts b/desktop/angular/src/app/services/status.service.ts index c52b73c7..863d85d2 100644 --- a/desktop/angular/src/app/services/status.service.ts +++ b/desktop/angular/src/app/services/status.service.ts @@ -13,10 +13,7 @@ export class StatusService { */ static trackSubsystem: TrackByFunction = trackById; readonly trackSubsystem = StatusService.trackSubsystem; - - readonly statusPrefix = "runtime:" - readonly subsystemPrefix = this.statusPrefix + "subsystems/" - + /** * status$ watches the global core status. It's mutlicasted using a BehaviorSubject so new * subscribers will automatically get the latest version while only one subscription @@ -48,48 +45,4 @@ export class StatusService { SelectedSecurityLevel: securityLevel, }); } - - - /** - * Loads the current status of a subsystem. - * - * @param name The ID of the subsystem - */ - getSubsystemStatus(id: string): Observable { - return this.portapi.get(this.subsystemPrefix + id); - } - - /** - * Loads the current status of all subsystems matching idPrefix. - * If idPrefix is an empty string all subsystems are returned. - * - * @param idPrefix An optional ID prefix to limit the returned subsystems - */ - querySubsystem(idPrefix: string = ''): Observable { - return this.portapi.query(this.subsystemPrefix + idPrefix) - .pipe( - map(reply => reply.data), - toArray(), - ) - } - - /** - * Watch a subsystem for changes. Completes when the subsystem is - * deleted. See {@method PortAPI.watch} for more information. - * - * @param id The ID of the subsystem to watch. - * @param opts Additional options for portapi.watch(). - */ - watchSubsystem(id: string, opts?: WatchOpts): Observable { - return this.portapi.watch(this.subsystemPrefix + id, opts); - } - - /** - * Watch for subsystem changes - * - * @param opts Additional options for portapi.sub(). - */ - watchSubsystems(opts?: RetryableOpts): Observable { - return this.portapi.watchAll(this.subsystemPrefix, opts); - } }