@@ -17,8 +17,6 @@ var axes = module.exports = {};
17
17
18
18
axes . layoutAttributes = require ( './layout_attributes' ) ;
19
19
20
- var xAxisMatch = / ^ x a x i s [ 0 - 9 ] * $ / ,
21
- yAxisMatch = / ^ y a x i s [ 0 - 9 ] * $ / ;
22
20
23
21
axes . supplyLayoutDefaults = function ( layoutIn , layoutOut , fullData ) {
24
22
// get the full list of axes already defined
@@ -371,8 +369,6 @@ axes.clearTypes = function(gd, traces) {
371
369
// convert between axis names (xaxis, xaxis2, etc, elements of td.layout)
372
370
// and axis id's (x, x2, etc). Would probably have ditched 'xaxis'
373
371
// completely in favor of just 'x' if it weren't ingrained in the API etc.
374
- var AX_ID_PATTERN = / ^ [ x y z ] [ 0 - 9 ] * $ / ,
375
- AX_NAME_PATTERN = / ^ [ x y z ] a x i s [ 0 - 9 ] * $ / ;
376
372
axes . id2name = function ( id ) {
377
373
if ( typeof id !== 'string' || ! id . match ( AX_ID_PATTERN ) ) return ;
378
374
var axNum = id . substr ( 1 ) ;
@@ -583,14 +579,6 @@ axes.cleanDatum = function(c){
583
579
return c ;
584
580
} ;
585
581
586
- /**
587
- * standardize all missing data in calcdata to use undefined
588
- * never null or NaN.
589
- * that way we can use !==undefined, or !==axes.BADNUM,
590
- * to test for real data
591
- */
592
- axes . BADNUM = undefined ;
593
-
594
582
// setConvert: define the conversion functions for an axis
595
583
// data is used in 4 ways:
596
584
// d: data, in whatever form it's provided
0 commit comments