Remove unused and redundant methods from canvas modules

Cleaned up the codebase by removing unused or redundant methods from Canvas, CanvasIO, CanvasLayers, CanvasLayersPanel, CanvasRenderer, and MaskTool. This reduces code complexity and improves maintainability without affecting core functionality.
This commit is contained in:
Dariusz L
2025-07-26 23:39:29 +02:00
parent f28783348e
commit 796a65d251
10 changed files with 0 additions and 369 deletions

View File

@@ -534,7 +534,6 @@ export class CanvasLayersPanel {
log.debug(`Layer clicked: ${layer.name}, selection count: ${this.canvas.canvasSelection.selectedLayers.length}`);
}
startEditingLayerName(nameElement: HTMLElement, layer: Layer): void {
const currentName = layer.name;
nameElement.classList.add('editing');
@@ -572,7 +571,6 @@ export class CanvasLayersPanel {
});
}
ensureUniqueName(proposedName: string, currentLayer: Layer): string {
const existingNames = this.canvas.layers
.filter((layer: Layer) => layer !== currentLayer)
@@ -731,7 +729,6 @@ export class CanvasLayersPanel {
this.draggedElements = [];
}
onLayersChanged(): void {
this.renderLayers();
}