Skip to content

Commit 4bd9dce

Browse files
committed
cleanup
1 parent c7f7655 commit 4bd9dce

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/components/ChartUPlot.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,6 @@ const ChartUPlot = forwardRef<any, UPlotProps>(
185185
return getDimensions(options, style, width, height, margin);
186186
}, [options, style, width, height]);
187187

188-
var injectFns = useMemo(() => {
189-
if (!functions || functions.length === 0) return '';
190-
// convert functions to string if needed
191-
return functions
192-
.map((fn) => (typeof fn === 'function' ? fn.toString() : fn))
193-
.join('\n');
194-
}, [functions]);
195-
196188
useEffect(() => {
197189
// update uplot height and width if options change
198190

0 commit comments

Comments
 (0)