From 236f41f3241020128551b41b65a7cd8b61b98bdf Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 29 Aug 2022 13:34:02 +0200 Subject: [PATCH] remove unused method --- .../src/core/stores/data-type.store.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/core/stores/data-type.store.ts b/src/Umbraco.Web.UI.Client/src/core/stores/data-type.store.ts index 38662cba84..7630de08f7 100644 --- a/src/Umbraco.Web.UI.Client/src/core/stores/data-type.store.ts +++ b/src/Umbraco.Web.UI.Client/src/core/stores/data-type.store.ts @@ -5,20 +5,6 @@ export class UmbDataTypeStore { private _dataTypes: BehaviorSubject> = new BehaviorSubject(>[]); public readonly dataTypes: Observable> = this._dataTypes.asObservable(); - getById(id: number): Observable { - // TODO: use Fetcher API. - // TODO: only fetch if the data type is not in the store? - fetch(`/umbraco/backoffice/data-type/${id}`) - .then((res) => res.json()) - .then((data) => { - this._updateStore(data); - }); - - return this.dataTypes.pipe( - map((dataTypes: Array) => dataTypes.find((node: DataTypeEntity) => node.id === id) || null) - ); - } - getByKey(key: string): Observable { // TODO: use Fetcher API. // TODO: only fetch if the data type is not in the store?