Resources service: Delete deprecated setResources

This commit is contained in:
Konstantinos Triantafyllou 2022-09-21 12:02:29 +03:00
parent d9afcfcb06
commit 05cfd20bb9
1 changed files with 0 additions and 14 deletions

View File

@ -61,20 +61,6 @@ export class ResourcesService {
return items;
}
/**
* @deprecated
* */
setResourcesDeprecated(items: MenuItem[], prefix = '', portal: string = null) {
if (this.subscription) {
this.subscription.unsubscribe();
}
let resources = new MenuItem('resources', 'Resources', "", "", false, [], null, {});
let index = items.push(resources) - 1;
this.subscription = from(this.getResourcesItemsAsync(prefix, portal)).subscribe(resourcesItems => {
items[index].items = resourcesItems;
});
}
setResources(items: MenuItem[], prefix = '', portal: string = null) {
if (this.subscription) {
this.subscription.unsubscribe();