From fdbf316cc1e44c06b8a6264ca8ca43f5b672c637 Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Thu, 21 Dec 2023 17:46:36 +0800 Subject: [PATCH] remove redundant code --- packages/excalidraw/element/bounds.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/excalidraw/element/bounds.ts b/packages/excalidraw/element/bounds.ts index 54a7996b5..0570b77cd 100644 --- a/packages/excalidraw/element/bounds.ts +++ b/packages/excalidraw/element/bounds.ts @@ -649,25 +649,6 @@ export const getArrowheadPoints = ( return [x2, y2, x3, y3, x4, y4]; }; -const generateLinearElementShape = ( - element: ExcalidrawLinearElement, -): Drawable => { - const generator = rough.generator(); - const options = generateRoughOptions(element); - - const method = (() => { - if (element.roundness) { - return "curve"; - } - if (options.fill) { - return "polygon"; - } - return "linearPath"; - })(); - - return generator[method](element.points as Mutable[], options); -}; - const getLinearElementRotatedBounds = ( element: ExcalidrawLinearElement, cx: number,