Skip to content

Commit 1d35415

Browse files
[DURACOM-383] remove unused metod & spaces
1 parent fc6f1d1 commit 1d35415

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/app/item-page/edit-item-page/item-delete/item-delete.component.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ export class ItemDeleteComponent
276276
* @param relationshipType the relationship type to get the label for
277277
*/
278278
getLabel(relationshipType: RelationshipType): Observable<string> {
279-
280279
return this.getRelationships(relationshipType).pipe(
281280
switchMap((relationships) =>
282281
this.isLeftItem(relationships[0]).pipe(
@@ -291,7 +290,6 @@ export class ItemDeleteComponent
291290
* @param relationshipType the relationship type to filter the item's relationships on
292291
*/
293292
getRelationships(relationshipType: RelationshipType): Observable<Relationship[]> {
294-
295293
if (!this.relationships$.has(relationshipType)) {
296294
this.relationships$.set(
297295
relationshipType,
@@ -319,7 +317,6 @@ export class ItemDeleteComponent
319317
* @param relationship the relationship to get the type for
320318
*/
321319
private getRelationshipType(relationship: Relationship): Observable<RelationshipType> {
322-
323320
this.linkService.resolveLinks(
324321
relationship,
325322
followLink('relationshipType'),
@@ -338,9 +335,7 @@ export class ItemDeleteComponent
338335
* @param relationship the relationship to get the other item for
339336
*/
340337
getRelatedItem(relationship: Relationship): Observable<Item> {
341-
342338
if (!this.relatedItems$.has(relationship)) {
343-
344339
this.relatedItems$.set(
345340
relationship,
346341
this.isLeftItem(relationship).pipe(
@@ -361,7 +356,6 @@ export class ItemDeleteComponent
361356
getVirtualMetadata(relationship: Relationship): Observable<VirtualMetadata[]> {
362357

363358
if (!this.virtualMetadata$.has(relationship)) {
364-
365359
this.virtualMetadata$.set(
366360
relationship,
367361
this.getRelatedItem(relationship).pipe(
@@ -437,20 +431,6 @@ export class ItemDeleteComponent
437431
});
438432
}
439433

440-
/**
441-
* When the item is successfully delete, navigate to the homepage, otherwise navigate back to the item edit page
442-
* @param succeeded
443-
*/
444-
notify(succeeded: boolean) {
445-
if (succeeded) {
446-
this.notificationsService.success(this.translateService.get('item.edit.' + this.messageKey + '.success'));
447-
void this.router.navigate(['']);
448-
} else {
449-
this.notificationsService.error(this.translateService.get('item.edit.' + this.messageKey + '.error'));
450-
void this.router.navigate([getItemEditRoute(this.item)]);
451-
}
452-
}
453-
454434
/**
455435
* Unsubscribe from all subscriptions
456436
*/

0 commit comments

Comments
 (0)