Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0fff076

Browse files
committedMar 11, 2025·
chore: remove obsolete functions
1 parent a063780 commit 0fff076

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed
 

‎src/components/tile-manager/resize-state.ts

-15
Original file line numberDiff line numberDiff line change
@@ -153,21 +153,6 @@ class TileResizeState {
153153
};
154154
}
155155

156-
public calculateActualSize(grid: HTMLElement) {
157-
const { columns, rows } = parseTileParentGrid(grid);
158-
159-
const width = this._resizeUtil.calculateSizeFromEntries(
160-
columns.entries,
161-
this.position.column
162-
);
163-
const height = this._resizeUtil.calculateSizeFromEntries(
164-
rows.entries,
165-
this.position.row
166-
);
167-
168-
return { width, height };
169-
}
170-
171156
/**
172157
* Checks and adjusts tile spans based on the column count of the tile manager.
173158
*/

‎src/components/tile-manager/resize-util.ts

-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type {
22
ResizeProps,
33
ResizeSpanProps,
44
SnappedDimension,
5-
TilePosition,
65
} from './types.js';
76

87
export class ResizeUtil {
@@ -74,17 +73,6 @@ export class ResizeUtil {
7473
return { snappedSize, newDelta: currentDelta };
7574
}
7675

77-
public calculateSizeFromEntries(entries: number[], position: TilePosition) {
78-
let accumulatedSize = 0;
79-
80-
for (let i = 0; i < position.span; i++) {
81-
const gapSize = i > 0 ? this.gap : 0;
82-
accumulatedSize += entries[position.start - 1 + i] + gapSize;
83-
}
84-
85-
return accumulatedSize;
86-
}
87-
8876
public calculateResizedSpan(props: ResizeSpanProps): number {
8977
const { targetSize, tilePosition, tileGridDimension, gap, isRow } = props;
9078
const { entries, minSize } = tileGridDimension;

0 commit comments

Comments
 (0)
Please sign in to comment.