Skip to content

Commit df4e976

Browse files
Remove debug code
1 parent e9c1cbf commit df4e976

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/x-charts/src/internals/domUtils.ts

-9
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ export const getStyleString = (style: React.CSSProperties) =>
9898
);
9999

100100
let domCleanTimeout: NodeJS.Timeout | undefined;
101-
const domResults = { count: 0, time: 0 };
102-
if (typeof window !== 'undefined') {
103-
window.domResults = domResults;
104-
}
105101

106102
/**
107103
*
@@ -122,9 +118,6 @@ export const getStringSize = (text: string | number, style: React.CSSProperties
122118
return stringCache.widthCache[cacheKey];
123119
}
124120

125-
domResults.count++;
126-
const startTime = performance.now();
127-
128121
try {
129122
let measurementSpan = document.getElementById(MEASUREMENT_SPAN_ID);
130123
if (measurementSpan === null) {
@@ -166,8 +159,6 @@ export const getStringSize = (text: string | number, style: React.CSSProperties
166159
return result;
167160
} catch {
168161
return { width: 0, height: 0 };
169-
} finally {
170-
domResults.time += performance.now() - startTime;
171162
}
172163
};
173164

0 commit comments

Comments
 (0)