mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 01:56:42 +02:00
#3409 Clean up dead code
This commit is contained in:
@@ -4,7 +4,6 @@ import { log } from '../../logger';
|
|||||||
import addSVGAccessibilityFields from '../../accessibility';
|
import addSVGAccessibilityFields from '../../accessibility';
|
||||||
|
|
||||||
let allCommitsDict = {};
|
let allCommitsDict = {};
|
||||||
let branchNum;
|
|
||||||
|
|
||||||
const commitType = {
|
const commitType = {
|
||||||
NORMAL: 0,
|
NORMAL: 0,
|
||||||
@@ -82,7 +81,7 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
|||||||
const sortedKeys = keys.sort((a, b) => {
|
const sortedKeys = keys.sort((a, b) => {
|
||||||
return commits[a].seq - commits[b].seq;
|
return commits[a].seq - commits[b].seq;
|
||||||
});
|
});
|
||||||
sortedKeys.forEach((key, index) => {
|
sortedKeys.forEach((key) => {
|
||||||
const commit = commits[key];
|
const commit = commits[key];
|
||||||
|
|
||||||
const y = branchPos[commit.branch].pos;
|
const y = branchPos[commit.branch].pos;
|
||||||
@@ -298,9 +297,6 @@ const drawCommits = (svg, commits, modifyGraph) => {
|
|||||||
* @returns {boolean} if there are commits between commit1's x-position and commit2's x-position
|
* @returns {boolean} if there are commits between commit1's x-position and commit2's x-position
|
||||||
*/
|
*/
|
||||||
const hasOverlappingCommits = (commit1, commit2, allCommits) => {
|
const hasOverlappingCommits = (commit1, commit2, allCommits) => {
|
||||||
const commit1Pos = commitPos[commit2.id];
|
|
||||||
const commit2Pos = commitPos[commit1.id];
|
|
||||||
|
|
||||||
// Find commits on the same branch as commit2
|
// Find commits on the same branch as commit2
|
||||||
const keys = Object.keys(allCommits);
|
const keys = Object.keys(allCommits);
|
||||||
const overlappingComits = keys.filter((key) => {
|
const overlappingComits = keys.filter((key) => {
|
||||||
|
Reference in New Issue
Block a user