Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uglifyjs wanrings which means we can improve the code #156

Closed
tylerlong opened this issue Apr 19, 2015 · 1 comment
Closed

uglifyjs wanrings which means we can improve the code #156

tylerlong opened this issue Apr 19, 2015 · 1 comment

Comments

@tylerlong
Copy link
Collaborator

cd into this folder: https://github.com/knsv/mermaid/tree/master/dist

execute uglifyjs mermaid.full.js --mangle --compress > mermaid.full.min.js

Here is the output:

WARN: Dropping unused function argument exports [mermaid.full.js:6,794]
WARN: Dropping unused function argument exports [mermaid.full.js:28,349]
WARN: Dropping unused function argument exports [mermaid.full.js:28,1726]
WARN: Dropping unused function argument exports [mermaid.full.js:28,2538]
WARN: Dropping unused function argument exports [mermaid.full.js:28,3460]
WARN: Dropping unused function argument exports [mermaid.full.js:28,6223]
WARN: Dropping unused function argument exports [mermaid.full.js:28,7816]
WARN: Dropping unused function argument exports [mermaid.full.js:28,7882]
WARN: Dropping unused function argument exports [mermaid.full.js:28,8042]
WARN: Dropping unused function argument exports [mermaid.full.js:28,8227]
WARN: Dropping unused function argument exports [mermaid.full.js:28,8584]
WARN: Dropping unused function argument exports [mermaid.full.js:28,8816]
WARN: Dropping unused function argument exports [mermaid.full.js:28,9170]
WARN: Dropping unused function argument exports [mermaid.full.js:28,9862]
WARN: Dropping unused function argument exports [mermaid.full.js:28,9998]
WARN: Dropping unused function argument exports [mermaid.full.js:28,11055]
WARN: Dropping unused function argument exports [mermaid.full.js:28,11410]
WARN: Dropping unused function argument exports [mermaid.full.js:28,12027]
WARN: Dropping unused function argument exports [mermaid.full.js:28,12560]
WARN: Dropping unused function argument exports [mermaid.full.js:28,13242]
WARN: Dropping unused function argument exports [mermaid.full.js:28,13406]
WARN: Dropping unused function argument exports [mermaid.full.js:28,13941]
WARN: Dropping unused function argument exports [mermaid.full.js:28,14410]
WARN: Dropping unused function argument exports [mermaid.full.js:28,17671]
WARN: Dropping unused function argument exports [mermaid.full.js:28,19366]
WARN: Dropping unused function argument exports [mermaid.full.js:28,20206]
WARN: Dropping unused function argument exports [mermaid.full.js:28,20271]
WARN: Dropping unused function argument exports [mermaid.full.js:28,20622]
WARN: Dropping unused function argument exports [mermaid.full.js:28,21587]
WARN: Dropping unused function argument exports [mermaid.full.js:28,22378]
WARN: Dropping unused function argument exports [mermaid.full.js:28,23543]
WARN: Dropping unused function argument exports [mermaid.full.js:28,24438]
WARN: Dropping unused function argument exports [mermaid.full.js:28,25103]
WARN: Dropping unused function argument exports [mermaid.full.js:28,25236]
WARN: Dropping unused function argument exports [mermaid.full.js:28,27528]
WARN: Dropping unused function argument exports [mermaid.full.js:29,4216]
WARN: Dropping unused function argument exports [mermaid.full.js:29,4347]
WARN: Dropping unused function argument exports [mermaid.full.js:29,6293]
WARN: Dropping unused function argument exports [mermaid.full.js:29,7604]
WARN: Dropping unused function argument exports [mermaid.full.js:29,8061]
WARN: Dropping unused function argument exports [mermaid.full.js:29,8531]
WARN: Dropping unused function argument exports [mermaid.full.js:29,9450]
WARN: Dropping unused function argument exports [mermaid.full.js:29,10454]
WARN: Dropping unused function argument exports [mermaid.full.js:29,12029]
WARN: Dropping unused function argument exports [mermaid.full.js:29,12623]
WARN: Dropping unused function argument exports [mermaid.full.js:29,14378]
WARN: Dropping unused function argument exports [mermaid.full.js:29,16091]
WARN: Dropping unused function argument exports [mermaid.full.js:29,17238]
WARN: Dropping unused function argument exports [mermaid.full.js:29,18572]
WARN: Dropping unused function argument exports [mermaid.full.js:29,24835]
WARN: Dropping unused function argument exports [mermaid.full.js:29,25433]
WARN: Dropping unused function argument exports [mermaid.full.js:29,26361]
WARN: Dropping unused function argument exports [mermaid.full.js:29,26999]
WARN: Dropping unused function argument exports [mermaid.full.js:29,30327]
WARN: Dropping unused function argument exports [mermaid.full.js:29,30858]
WARN: Dropping unused function argument exports [mermaid.full.js:30,2407]
WARN: Dropping unused function argument exports [mermaid.full.js:30,2472]
WARN: Dropping unused function argument exports [mermaid.full.js:30,2685]
WARN: Dropping unused function argument exports [mermaid.full.js:30,3070]
WARN: Dropping unused function argument exports [mermaid.full.js:30,3590]
WARN: Dropping unused function argument exports [mermaid.full.js:30,3883]
WARN: Dropping unused function argument exports [mermaid.full.js:30,4996]
WARN: Dropping unused function argument exports [mermaid.full.js:30,5234]
WARN: Dropping unused function argument exports [mermaid.full.js:30,6191]
WARN: Dropping unused function argument exports [mermaid.full.js:30,6795]
WARN: Dropping unused function argument exports [mermaid.full.js:30,7029]
WARN: Dropping unused function argument exports [mermaid.full.js:30,7181]
WARN: Dropping unused function argument exports [mermaid.full.js:30,7330]
WARN: Dropping unused function argument exports [mermaid.full.js:30,8210]
WARN: Dropping unused function argument exports [mermaid.full.js:30,8891]
WARN: Dropping unused function argument exports [mermaid.full.js:30,9421]
WARN: Dropping unused function argument exports [mermaid.full.js:30,11581]
WARN: Dropping unused function argument exports [mermaid.full.js:30,19006]
WARN: Dropping unused function argument exports [mermaid.full.js:30,19146]
WARN: Dropping unused function argument exports [mermaid.full.js:30,20261]
WARN: Dropping unused function argument exports [mermaid.full.js:30,20392]
WARN: Dropping unused function argument properties [mermaid.full.js:30,29129]
WARN: Dropping unused variable isCurryBound [mermaid.full.js:31,4464]
WARN: Dropping unused variable module [mermaid.full.js:6,303]
WARN: Dropping unused variable exports [mermaid.full.js:6,310]
WARN: Dropping unused function argument exports [mermaid.full.js:33,476]
WARN: Dropping unused function argument exports [mermaid.full.js:9249,33]
WARN: Dropping unused function argument exports [mermaid.full.js:9281,142]
WARN: Dropping unused function argument exports [mermaid.full.js:9345,44]
WARN: Dropping unused function argument exports [mermaid.full.js:9380,44]
WARN: Dropping unused function argument exports [mermaid.full.js:9417,90]
WARN: Dropping unused function argument exports [mermaid.full.js:9549,99]
WARN: Dropping unused function argument exports [mermaid.full.js:9609,90]
WARN: Dropping unused function argument exports [mermaid.full.js:9613,33]
WARN: Dropping unused function argument exports [mermaid.full.js:9630,44]
WARN: Dropping unused function argument exports [mermaid.full.js:9647,47]
WARN: Dropping unused function argument exports [mermaid.full.js:9656,151]
WARN: Dropping unused function argument exports [mermaid.full.js:9665,58]
WARN: Dropping unused function argument exports [mermaid.full.js:9692,34]
WARN: Dropping unused function argument exports [mermaid.full.js:9764,34]
WARN: Dropping unused function argument exports [mermaid.full.js:9771,34]
WARN: Dropping unused function argument exports [mermaid.full.js:9828,55]
WARN: Dropping unused function argument exports [mermaid.full.js:9862,34]
WARN: Dropping unused function argument exports [mermaid.full.js:9907,46]
WARN: Dropping unused function argument exports [mermaid.full.js:9932,77]
WARN: Dropping unused function argument exports [mermaid.full.js:9979,46]
WARN: Dropping unused function argument exports [mermaid.full.js:9996,45]
WARN: Dropping unused function argument exports [mermaid.full.js:10020,68]
WARN: Dropping unused function argument exports [mermaid.full.js:10043,54]
WARN: Dropping unused function argument exports [mermaid.full.js:10209,226]
WARN: Dropping unused function argument exports [mermaid.full.js:10292,169]
WARN: Dropping unused function argument exports [mermaid.full.js:10348,47]
WARN: Dropping unused function argument exports [mermaid.full.js:10351,34]
WARN: Dropping unused function argument exports [mermaid.full.js:10386,123]
WARN: Dropping unused function argument exports [mermaid.full.js:10455,65]
WARN: Dropping unused function argument exports [mermaid.full.js:10495,59]
WARN: Dropping unused function argument exports [mermaid.full.js:10569,47]
WARN: Dropping unused function argument exports [mermaid.full.js:10627,34]
WARN: Dropping unused function argument exports [mermaid.full.js:10663,75]
WARN: Dropping unused function argument exports [mermaid.full.js:10665,47]
WARN: Dropping unused function argument exports [mermaid.full.js:10785,80]
WARN: Dropping unused function argument exports [mermaid.full.js:11179,248]
WARN: Dropping unused function argument exports [mermaid.full.js:11181,45]
WARN: Dropping unused function argument exports [mermaid.full.js:11315,59]
WARN: Dropping unused function argument exports [mermaid.full.js:11407,59]
WARN: Dropping unused function argument exports [mermaid.full.js:11462,48]
WARN: Dropping unused function argument exports [mermaid.full.js:11492,48]
WARN: Dropping unused function argument exports [mermaid.full.js:11567,65]
WARN: Dropping unused function argument exports [mermaid.full.js:11639,48]
WARN: Dropping unused function argument exports [mermaid.full.js:11720,193]
WARN: Dropping unused function argument exports [mermaid.full.js:11760,48]
WARN: Dropping unused function argument exports [mermaid.full.js:11885,48]
WARN: Dropping unused function argument exports [mermaid.full.js:11963,103]
WARN: Dropping unused function argument exports [mermaid.full.js:12022,61]
WARN: Dropping unused function argument exports [mermaid.full.js:12110,47]
WARN: Dropping unused function argument exports [mermaid.full.js:12509,78]
WARN: Dropping unused function argument exports [mermaid.full.js:12541,71]
WARN: Dropping unused function argument exports [mermaid.full.js:12632,77]
WARN: Dropping unused function argument exports [mermaid.full.js:12682,89]
WARN: Dropping unused function argument exports [mermaid.full.js:12918,111]
WARN: Dropping unused function argument exports [mermaid.full.js:12981,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13219,63]
WARN: Dropping unused function argument exports [mermaid.full.js:13222,34]
WARN: Dropping unused function argument exports [mermaid.full.js:13262,75]
WARN: Dropping unused function argument exports [mermaid.full.js:13291,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13332,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13344,64]
WARN: Dropping unused function argument exports [mermaid.full.js:13400,76]
WARN: Dropping unused function argument exports [mermaid.full.js:13410,62]
WARN: Dropping unused function argument exports [mermaid.full.js:13462,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13477,220]
WARN: Dropping unused function argument exports [mermaid.full.js:13494,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13503,44]
WARN: Dropping unused function argument exports [mermaid.full.js:13512,44]
WARN: Dropping unused function argument exports [mermaid.full.js:13566,90]
WARN: Dropping unused function argument exports [mermaid.full.js:13615,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13651,48]
WARN: Dropping unused function argument exports [mermaid.full.js:13805,48]
WARN: Dropping unused function argument exports [mermaid.full.js:14275,47]
WARN: Dropping unused function argument exports [mermaid.full.js:14282,61]
WARN: Dropping unused function argument exports [mermaid.full.js:14350,60]
WARN: Dropping unused function argument exports [mermaid.full.js:14352,45]
WARN: Dropping unused function argument exports [mermaid.full.js:14355,34]
WARN: Dropping unused function argument module [mermaid.full.js:14355,27]
WARN: Dropping unused function argument require [mermaid.full.js:14355,19]
WARN: Dropping unused function argument index [mermaid.full.js:14478,53]
WARN: Dropping unused function argument name [mermaid.full.js:14640,28]
WARN: Dropping unused function argument dir [mermaid.full.js:14646,26]
WARN: Dropping unused function argument exports [mermaid.full.js:14585,45]
WARN: Dropping unused function argument properties [mermaid.full.js:15819,35]
WARN: Dropping unused variable isCurryBound [mermaid.full.js:16382,10]
WARN: Dropping unreachable code [mermaid.full.js:23285,8]
WARN: Dropping unused function argument exports [mermaid.full.js:24856,34]
WARN: Dropping unused variable textstring [mermaid.full.js:24999,8]
WARN: Dropping unreachable code [mermaid.full.js:25109,0]
WARN: Dropping unused function argument _$ [mermaid.full.js:25102,106]
WARN: Dropping unused function popStack [mermaid.full.js:25157,13]
WARN: Dropping unused variable tstack [mermaid.full.js:25134,34]
WARN: Dropping unused variable a [mermaid.full.js:25171,47]
WARN: Dropping unreachable code [mermaid.full.js:25601,0]
WARN: Dropping unreachable code [mermaid.full.js:25603,0]
WARN: Dropping unreachable code [mermaid.full.js:25605,0]
WARN: Dropping unreachable code [mermaid.full.js:25607,0]
WARN: Dropping unreachable code [mermaid.full.js:25609,0]
WARN: Dropping unreachable code [mermaid.full.js:25611,0]
WARN: Dropping unreachable code [mermaid.full.js:25613,0]
WARN: Dropping unused variable YYSTATE [mermaid.full.js:25598,4]
WARN: Dropping unused function argument exports [mermaid.full.js:25647,63]
WARN: Dropping unused function argument exports [mermaid.full.js:25664,40]
WARN: Dropping unused variable i [mermaid.full.js:25726,12]
WARN: Dropping unused variable classDefStylesObj [mermaid.full.js:25893,8]
WARN: Dropping unused variable classDefStyleStr [mermaid.full.js:25894,8]
WARN: Dropping unused function argument subG [mermaid.full.js:25957,31]
WARN: Side effects in initialization of unused variable svgb [mermaid.full.js:26081,8]
WARN: Side effects in initialization of unused variable position [mermaid.full.js:26211,8]
WARN: Dropping unused function argument list [mermaid.full.js:26376,33]
WARN: Dropping unused function argument _$ [mermaid.full.js:26465,106]
WARN: Dropping unused function popStack [mermaid.full.js:26560,13]
WARN: Dropping unused variable tstack [mermaid.full.js:26537,34]
WARN: Dropping unused variable a [mermaid.full.js:26574,47]
WARN: Dropping unreachable code [mermaid.full.js:27003,0]
WARN: Dropping unreachable code [mermaid.full.js:27005,0]
WARN: Dropping unreachable code [mermaid.full.js:27007,0]
WARN: Dropping unreachable code [mermaid.full.js:27009,0]
WARN: Dropping unreachable code [mermaid.full.js:27011,0]
WARN: Dropping unreachable code [mermaid.full.js:27013,0]
WARN: Dropping unreachable code [mermaid.full.js:27015,0]
WARN: Dropping unreachable code [mermaid.full.js:27017,0]
WARN: Dropping unreachable code [mermaid.full.js:27019,0]
WARN: Dropping unreachable code [mermaid.full.js:27021,0]
WARN: Dropping unreachable code [mermaid.full.js:27023,0]
WARN: Dropping unreachable code [mermaid.full.js:27025,0]
WARN: Dropping unreachable code [mermaid.full.js:27027,0]
WARN: Dropping unreachable code [mermaid.full.js:27029,0]
WARN: Dropping unreachable code [mermaid.full.js:27031,0]
WARN: Dropping unreachable code [mermaid.full.js:27033,0]
WARN: Dropping unreachable code [mermaid.full.js:27035,0]
WARN: Dropping unreachable code [mermaid.full.js:27037,0]
WARN: Dropping unreachable code [mermaid.full.js:27039,0]
WARN: Dropping unreachable code [mermaid.full.js:27041,0]
WARN: Dropping unreachable code [mermaid.full.js:27043,0]
WARN: Dropping unreachable code [mermaid.full.js:27045,0]
WARN: Dropping unreachable code [mermaid.full.js:27047,0]
WARN: Dropping unreachable code [mermaid.full.js:27049,0]
WARN: Dropping unreachable code [mermaid.full.js:27051,0]
WARN: Dropping unreachable code [mermaid.full.js:27053,0]
WARN: Dropping unreachable code [mermaid.full.js:27055,0]
WARN: Dropping unreachable code [mermaid.full.js:27057,0]
WARN: Dropping unreachable code [mermaid.full.js:27059,0]
WARN: Dropping unreachable code [mermaid.full.js:27061,0]
WARN: Dropping unreachable code [mermaid.full.js:27063,0]
WARN: Dropping unreachable code [mermaid.full.js:27065,0]
WARN: Dropping unreachable code [mermaid.full.js:27067,0]
WARN: Dropping unreachable code [mermaid.full.js:27069,0]
WARN: Dropping unreachable code [mermaid.full.js:27071,0]
WARN: Dropping unreachable code [mermaid.full.js:27073,0]
WARN: Dropping unreachable code [mermaid.full.js:27075,0]
WARN: Dropping unreachable code [mermaid.full.js:27077,0]
WARN: Dropping unreachable code [mermaid.full.js:27079,0]
WARN: Dropping unreachable code [mermaid.full.js:27081,0]
WARN: Dropping unreachable code [mermaid.full.js:27083,0]
WARN: Dropping unreachable code [mermaid.full.js:27085,0]
WARN: Dropping unreachable code [mermaid.full.js:27087,0]
WARN: Dropping unused variable YYSTATE [mermaid.full.js:27000,4]
WARN: Dropping unused function argument _$ [mermaid.full.js:27203,106]
WARN: Dropping unused function popStack [mermaid.full.js:27439,13]
WARN: Dropping unused variable tstack [mermaid.full.js:27416,34]
WARN: Dropping unused variable a [mermaid.full.js:27453,47]
WARN: Dropping unreachable code [mermaid.full.js:27884,0]
WARN: Dropping unreachable code [mermaid.full.js:27886,0]
WARN: Dropping unreachable code [mermaid.full.js:27888,0]
WARN: Dropping unreachable code [mermaid.full.js:27890,0]
WARN: Dropping unreachable code [mermaid.full.js:27892,0]
WARN: Dropping unreachable code [mermaid.full.js:27894,0]
WARN: Dropping unreachable code [mermaid.full.js:27896,0]
WARN: Dropping unreachable code [mermaid.full.js:27898,0]
WARN: Dropping unreachable code [mermaid.full.js:27900,0]
WARN: Dropping unreachable code [mermaid.full.js:27902,0]
WARN: Dropping unreachable code [mermaid.full.js:27904,0]
WARN: Dropping unreachable code [mermaid.full.js:27906,0]
WARN: Dropping unreachable code [mermaid.full.js:27908,0]
WARN: Dropping unreachable code [mermaid.full.js:27910,0]
WARN: Dropping unreachable code [mermaid.full.js:27912,0]
WARN: Dropping unreachable code [mermaid.full.js:27914,0]
WARN: Dropping unreachable code [mermaid.full.js:27916,0]
WARN: Dropping unreachable code [mermaid.full.js:27918,0]
WARN: Dropping unreachable code [mermaid.full.js:27920,0]
WARN: Dropping unreachable code [mermaid.full.js:27922,0]
WARN: Dropping unreachable code [mermaid.full.js:27924,0]
WARN: Dropping unreachable code [mermaid.full.js:27926,0]
WARN: Dropping unreachable code [mermaid.full.js:27928,0]
WARN: Dropping unreachable code [mermaid.full.js:27930,0]
WARN: Dropping unreachable code [mermaid.full.js:27932,0]
WARN: Dropping unreachable code [mermaid.full.js:27934,0]
WARN: Dropping unreachable code [mermaid.full.js:27936,0]
WARN: Dropping unreachable code [mermaid.full.js:27938,0]
WARN: Dropping unreachable code [mermaid.full.js:27940,0]
WARN: Dropping unreachable code [mermaid.full.js:27942,0]
WARN: Dropping unreachable code [mermaid.full.js:27944,0]
WARN: Dropping unreachable code [mermaid.full.js:27946,0]
WARN: Dropping unreachable code [mermaid.full.js:27948,0]
WARN: Dropping unreachable code [mermaid.full.js:27950,0]
WARN: Dropping unreachable code [mermaid.full.js:27952,0]
WARN: Dropping unreachable code [mermaid.full.js:27954,0]
WARN: Dropping unreachable code [mermaid.full.js:27956,0]
WARN: Dropping unreachable code [mermaid.full.js:27958,0]
WARN: Dropping unreachable code [mermaid.full.js:27960,0]
WARN: Dropping unreachable code [mermaid.full.js:27962,0]
WARN: Dropping unreachable code [mermaid.full.js:27964,0]
WARN: Dropping unreachable code [mermaid.full.js:27966,0]
WARN: Dropping unreachable code [mermaid.full.js:27968,0]
WARN: Dropping unreachable code [mermaid.full.js:27970,0]
WARN: Dropping unreachable code [mermaid.full.js:27972,0]
WARN: Dropping unreachable code [mermaid.full.js:27974,0]
WARN: Dropping unreachable code [mermaid.full.js:27976,0]
WARN: Dropping unreachable code [mermaid.full.js:27978,0]
WARN: Dropping unreachable code [mermaid.full.js:27980,0]
WARN: Dropping unreachable code [mermaid.full.js:27982,0]
WARN: Dropping unreachable code [mermaid.full.js:27984,0]
WARN: Dropping unreachable code [mermaid.full.js:27986,0]
WARN: Dropping unreachable code [mermaid.full.js:27988,0]
WARN: Dropping unreachable code [mermaid.full.js:27990,0]
WARN: Dropping unreachable code [mermaid.full.js:27992,0]
WARN: Dropping unreachable code [mermaid.full.js:27994,0]
WARN: Dropping unreachable code [mermaid.full.js:27996,0]
WARN: Dropping unreachable code [mermaid.full.js:27998,0]
WARN: Dropping unreachable code [mermaid.full.js:28000,0]
WARN: Dropping unreachable code [mermaid.full.js:28002,0]
WARN: Dropping unreachable code [mermaid.full.js:28004,0]
WARN: Dropping unreachable code [mermaid.full.js:28006,0]
WARN: Dropping unused variable YYSTATE [mermaid.full.js:27879,4]
WARN: Dropping unused function argument exports [mermaid.full.js:28040,63]
WARN: Dropping unused function argument d [mermaid.full.js:28396,37]
WARN: Dropping unused function argument h [mermaid.full.js:28385,96]
WARN: Side effects in initialization of unused variable bigRects [mermaid.full.js:28387,12]
WARN: Side effects in initialization of unused variable innerRects [mermaid.full.js:28416,12]
WARN: Side effects in initialization of unused variable rectText [mermaid.full.js:28466,12]
WARN: Side effects in initialization of unused variable grid [mermaid.full.js:28600,12]
WARN: Dropping unused function argument theColorScale [mermaid.full.js:28612,69]
WARN: Dropping unused function argument theBarHeight [mermaid.full.js:28612,55]
WARN: Dropping unused function argument theSidePad [mermaid.full.js:28612,43]
WARN: Side effects in initialization of unused variable axisText [mermaid.full.js:28620,12]
WARN: Side effects in initialization of unused variable todayLine [mermaid.full.js:28657,12]
WARN: Side effects in initialization of unused variable dateFormat [mermaid.full.js:28323,8]
WARN: Side effects in initialization of unused variable title [mermaid.full.js:28358,8]
WARN: Dropping unused function argument exports [mermaid.full.js:28277,45]
WARN: Dropping unreachable code [mermaid.full.js:28782,0]
WARN: Dropping unused function argument _$ [mermaid.full.js:28775,106]
WARN: Dropping unused function popStack [mermaid.full.js:28842,13]
WARN: Dropping unused variable tstack [mermaid.full.js:28819,34]
WARN: Dropping unused variable a [mermaid.full.js:28856,47]
WARN: Dropping unreachable code [mermaid.full.js:29286,0]
WARN: Dropping unreachable code [mermaid.full.js:29294,0]
WARN: Dropping unreachable code [mermaid.full.js:29296,0]
WARN: Dropping unreachable code [mermaid.full.js:29298,0]
WARN: Dropping unreachable code [mermaid.full.js:29300,0]
WARN: Dropping unreachable code [mermaid.full.js:29302,0]
WARN: Dropping unreachable code [mermaid.full.js:29304,0]
WARN: Dropping unreachable code [mermaid.full.js:29306,0]
WARN: Dropping unreachable code [mermaid.full.js:29308,0]
WARN: Dropping unreachable code [mermaid.full.js:29310,0]
WARN: Dropping unreachable code [mermaid.full.js:29312,0]
WARN: Dropping unused variable YYSTATE [mermaid.full.js:29283,4]
WARN: Dropping unused function argument exports [mermaid.full.js:29346,63]
WARN: Dropping unreachable code [mermaid.full.js:29437,0]
WARN: Dropping unused function argument _$ [mermaid.full.js:29430,106]
WARN: Dropping unused function popStack [mermaid.full.js:29556,13]
WARN: Dropping unused variable tstack [mermaid.full.js:29533,34]
WARN: Dropping unused variable a [mermaid.full.js:29570,47]
WARN: Dropping unreachable code [mermaid.full.js:30000,0]
WARN: Dropping unreachable code [mermaid.full.js:30002,0]
WARN: Dropping unreachable code [mermaid.full.js:30004,0]
WARN: Dropping unreachable code [mermaid.full.js:30006,0]
WARN: Dropping unreachable code [mermaid.full.js:30008,0]
WARN: Dropping unreachable code [mermaid.full.js:30016,0]
WARN: Dropping unreachable code [mermaid.full.js:30018,0]
WARN: Dropping unreachable code [mermaid.full.js:30020,0]
WARN: Dropping unreachable code [mermaid.full.js:30022,0]
WARN: Dropping unreachable code [mermaid.full.js:30024,0]
WARN: Dropping unreachable code [mermaid.full.js:30026,0]
WARN: Dropping unreachable code [mermaid.full.js:30028,0]
WARN: Dropping unreachable code [mermaid.full.js:30030,0]
WARN: Dropping unreachable code [mermaid.full.js:30032,0]
WARN: Dropping unreachable code [mermaid.full.js:30034,0]
WARN: Dropping unreachable code [mermaid.full.js:30036,0]
WARN: Dropping unreachable code [mermaid.full.js:30038,0]
WARN: Dropping unreachable code [mermaid.full.js:30040,0]
WARN: Dropping unreachable code [mermaid.full.js:30042,0]
WARN: Dropping unreachable code [mermaid.full.js:30044,0]
WARN: Dropping unreachable code [mermaid.full.js:30046,0]
WARN: Dropping unreachable code [mermaid.full.js:30048,0]
WARN: Dropping unreachable code [mermaid.full.js:30050,0]
WARN: Dropping unreachable code [mermaid.full.js:30052,0]
WARN: Dropping unreachable code [mermaid.full.js:30054,0]
WARN: Dropping unreachable code [mermaid.full.js:30056,0]
WARN: Dropping unreachable code [mermaid.full.js:30058,0]
WARN: Dropping unused variable YYSTATE [mermaid.full.js:29997,4]
WARN: Dropping unused function argument nodes [mermaid.full.js:31017,34]
WARN: Dropping unused function argument sequenceConfig [mermaid.full.js:31017,18]
WARN: Dropping unused function argument hash [mermaid.full.js:31029,28]
WARN: Dropping unused function argument a [mermaid.full.js:31082,42]
WARN: Dropping unused function argument exports [mermaid.full.js:31072,588]
@knsv
Copy link
Collaborator

knsv commented May 28, 2015

Thanks for pointing this out.

I am guess for several causes for this:

  • some of this issues probably comes from the bundled libraries like d3 that have been minimzed already
  • some comes from mermaid as well for instance code generated by the jison parser
  • some are not quite correct when looking, it seems the bundled code generated by browserify confuses the linter
  • some might be correct, did not look at all errors

I will however look more closely at this and see if the linting in the project can be improved.

I will close this issue for now. If you feel otherwise please let me know.

@knsv knsv closed this as completed May 28, 2015
mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants