Skip to content

Commit e5bf7cf

Browse files
committed
axe unsed axis cleanName
1 parent b1945de commit e5bf7cf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/plots/cartesian/axis_ids.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ exports.cleanId = function cleanId(id, axLetter) {
4040
return id.charAt(0) + axNum;
4141
};
4242

43-
exports.cleanName = function cleanName(name, axLetter) {
44-
if(!name.match(constants.AX_ID_PATTERN)) return;
45-
if(axLetter && name.charAt(0) !== axLetter) return;
46-
47-
var axNum = name.substr(5).replace(/^0+/,'');
48-
if(axNum === '1') axNum = '';
49-
return name.charAt(0) + 'axis' + axNum;
50-
};
51-
5243
// get all axis object names
5344
// optionally restricted to only x or y or z by string axLetter
5445
// and optionally 2D axes only, not those inside 3D scenes

0 commit comments

Comments
 (0)