@@ -17,8 +17,6 @@ var axes = module.exports = {};
1717
1818axes . layoutAttributes = require ( './layout_attributes' ) ;
1919
20- var xAxisMatch = / ^ x a x i s [ 0 - 9 ] * $ / ,
21- yAxisMatch = / ^ y a x i s [ 0 - 9 ] * $ / ;
2220
2321axes . supplyLayoutDefaults = function ( layoutIn , layoutOut , fullData ) {
2422 // get the full list of axes already defined
@@ -371,8 +369,6 @@ axes.clearTypes = function(gd, traces) {
371369// convert between axis names (xaxis, xaxis2, etc, elements of td.layout)
372370// and axis id's (x, x2, etc). Would probably have ditched 'xaxis'
373371// 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 ] * $ / ;
376372axes . id2name = function ( id ) {
377373 if ( typeof id !== 'string' || ! id . match ( AX_ID_PATTERN ) ) return ;
378374 var axNum = id . substr ( 1 ) ;
@@ -583,14 +579,6 @@ axes.cleanDatum = function(c){
583579 return c ;
584580} ;
585581
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-
594582// setConvert: define the conversion functions for an axis
595583// data is used in 4 ways:
596584// d: data, in whatever form it's provided
0 commit comments