Skip to content

Commit

Permalink
#1024 Removal of leftover loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Oct 23, 2019
1 parent 364b81a commit c87637c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/diagrams/class/classRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ const drawClass = function(elem, classDef) {
isFirst = false;
});

console.warn('classDef.id', classDef.id);
console.warn('isFirst', isFirst);
// add class title
const classTitle = title
.append('tspan')
Expand All @@ -348,7 +346,6 @@ const drawClass = function(elem, classDef) {
.attr('y', titleHeight + conf.dividerMargin + conf.textHeight)
.attr('fill', 'white')
.attr('class', 'classText');
console.warn(classDef.id, titleHeight, conf.dividerMargin, conf.textHeight);

isFirst = true;
classDef.members.forEach(function(member) {
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/class/parser/classDiagram.jison
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ members
methodStatement
: className {/*console.log('Rel found',$1);*/}
| className LABEL {yy.addMember($1,yy.cleanupLabel($2));}
| MEMBER {console.warn('Member',$1);}
| MEMBER {/*console.warn('Member',$1);*/}
| SEPARATOR {/*console.log('sep found',$1);*/}
;

Expand Down
8 changes: 4 additions & 4 deletions src/diagrams/state/parser/stateDiagram.jison
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<SCALE>\s+"width" {this.popState();}

<INITIAL,struct>"state"\s+ { this.pushState('STATE'); }
<STATE>.*"<<fork>>" {this.popState();yytext=yytext.slice(0,-8).trim(); console.warn('Fork Fork: ',yytext);return 'FORK';}
<STATE>.*"<<join>>" {this.popState();yytext=yytext.slice(0,-8).trim();console.warn('Fork Join: ',yytext);return 'JOIN';}
<STATE>.*"[[fork]]" {this.popState();yytext=yytext.slice(0,-8).trim();console.warn('Fork Fork: ',yytext);return 'FORK';}
<STATE>.*"[[join]]" {this.popState();yytext=yytext.slice(0,-8).trim();console.warn('Fork Join: ',yytext);return 'JOIN';}
<STATE>.*"<<fork>>" {this.popState();yytext=yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yytext);*/return 'FORK';}
<STATE>.*"<<join>>" {this.popState();yytext=yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yytext);*/return 'JOIN';}
<STATE>.*"[[fork]]" {this.popState();yytext=yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yytext);*/return 'FORK';}
<STATE>.*"[[join]]" {this.popState();yytext=yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yytext);*/return 'JOIN';}
<STATE>["] this.begin("STATE_STRING");
<STATE>"as"\s* {this.popState();this.pushState('STATE_ID');return "AS";}
<STATE_ID>[^\n\{]* {this.popState();/* console.log('STATE_ID', yytext);*/return "ID";}
Expand Down
1 change: 0 additions & 1 deletion src/diagrams/state/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export const drawDescrState = (g, stateDef) => {
.attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)
.attr('class', 'descr-divider');
const descrBox = description.node().getBBox();
console.warn(descrBox.width, titleBox.width);
const width = Math.max(descrBox.width, titleBox.width);

descrLine.attr('x2', width + 3 * getConfig().state.padding);
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/state/stateRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const renderDoc = (doc, diagram, parentId) => {
});

stateBox = svgElem.getBBox();
console.warn('Diagram node', svgElem.id);

const stateInfo = {
id: parentId ? parentId : 'root',
label: parentId ? parentId : 'root',
Expand Down
2 changes: 0 additions & 2 deletions src/mermaidAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,6 @@ function parse(text) {
break;
case 'info':
logger.debug('info info info');
console.warn('In API', pkg.version);

parser = infoParser;
parser.parser.yy = infoDb;
break;
Expand Down

0 comments on commit c87637c

Please sign in to comment.