From d4e737e4512356f3edf1e9fc5449196615ea00ff Mon Sep 17 00:00:00 2001 From: nghtlinh Date: Fri, 25 Apr 2025 15:43:00 -0400 Subject: [PATCH] Deleted unused method --- .../src/diagrams/gantt/ganttRenderer.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/packages/mermaid/src/diagrams/gantt/ganttRenderer.js b/packages/mermaid/src/diagrams/gantt/ganttRenderer.js index 6c937a15d..eb8d3e676 100644 --- a/packages/mermaid/src/diagrams/gantt/ganttRenderer.js +++ b/packages/mermaid/src/diagrams/gantt/ganttRenderer.js @@ -798,25 +798,6 @@ export const draw = function (text, id, version, diagObj) { } } - /** - * @param theSidePad - * @param theTopPad - * @param w - * @param h - */ - function _drawDate(theSidePad, theTopPad, w, h) { - const todayG = svg.append('g').attr('class', 'today'); - const today = new Date(); - const todayLine = todayG.append('line'); - - todayLine - .attr('x1', timeScale(today) + theSidePad) - .attr('x2', timeScale(today) + theSidePad) - .attr('y1', conf.titleTopMargin) - .attr('y2', h - conf.titleTopMargin) - .attr('class', 'today'); - } - /** * From this stack exchange question: * http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript