Removes unnecessary destroy methods

This commit is contained in:
Janus C. H. Knudsen 2025-10-01 22:38:15 +02:00
parent 4e5077364e
commit a1e1c5d185
19 changed files with 34 additions and 214 deletions

View file

@ -97,15 +97,6 @@ export abstract class BaseEventRenderer implements EventRendererStrategy {
}
/**
* Cleanup method for proper resource management
*/
public destroy(): void {
this.draggedClone = null;
this.originalEvent = null;
}
/**
* Apply common drag styling to an element
*/

View file

@ -310,8 +310,4 @@ export class EventRenderingService {
public refresh(container?: HTMLElement): void {
this.clearEvents(container);
}
public destroy(): void {
this.clearEvents();
}
}

View file

@ -229,22 +229,6 @@ export class GridRenderer {
(this as any).cachedColumnContainer = columnContainer;
}
*/
/**
* Clean up cached elements and event listeners
*/
public destroy(): void {
// Clean up grid-only event listeners
// if ((this as any).gridBodyEventListener && (this as any).cachedColumnContainer) {
// (this as any).cachedColumnContainer.removeEventListener('mouseover', (this as any).gridBodyEventListener);
//}
// Clear cached references
this.cachedGridContainer = null;
this.cachedTimeAxis = null;
(this as any).gridBodyEventListener = null;
(this as any).cachedColumnContainer = null;
}
/**
* Create navigation grid container for slide animations
* Now uses same implementation as initial load for consistency

View file

@ -112,11 +112,4 @@ export class NavigationRenderer {
});
}
/**
* Public cleanup method for cached elements
*/
public destroy(): void {
this.clearCache();
}
}