remove getAllOnRunHooks

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-10-05 08:22:56 +03:00
1 parent a877e109ba
commit 613f84b180
2 files changed
-20

No files matched your search

-10
View File
@@ -65,16 +65,6 @@ export class CatalogEntityRegistry {
getOnRunHook(catalogEntityUid: CatalogEntity["metadata"]["uid"]): CatelogEntityOnRunHook | undefined {
return registry.getOnRunHook(catalogEntityUid);
}
/**
* Returns all catalog entities' onRun hooks
*/
getAllOnRunHooks(): Array<{
catalogEntityUid: CatalogEntity["metadata"]["uid"];
onRunHook: CatelogEntityOnRunHook;
}> {
return registry.getAllOnRunHooks();
}
}
export const catalogEntities = new CatalogEntityRegistry();
@@ -204,16 +204,6 @@ export class CatalogEntityRegistry {
getOnRunHook(_catalogEntityUid: CatalogEntityUid): CatelogEntityOnRunHook | undefined {
return Array.from(this.entityOnRunHooks).find(({ catalogEntityUid }) => catalogEntityUid === _catalogEntityUid)?.onRunHook;
}
/**
* Returns all catalog entities' onRun hooks
*/
getAllOnRunHooks(): Array<{
catalogEntityUid: CatalogEntityUid;
onRunHook: CatelogEntityOnRunHook;
}> {
return Array.from(this.entityOnRunHooks);
}
}
export const catalogEntityRegistry = new CatalogEntityRegistry(catalogCategoryRegistry);