Skip to content

Commit 0e52adb

Browse files
committed
remove duplicate pad functions
1 parent 6f575a3 commit 0e52adb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/plots/cartesian/autorange.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,7 @@ function makePadFn(ax, max) {
228228
(ax.domain[1] - ax.domain[0]);
229229
}
230230

231-
if(max) {
232-
return function getPadMax(pt) { return pt.pad + (pt.extrapad ? extrappad : 0); };
233-
} else {
234-
return function getPadMin(pt) { return pt.pad + (pt.extrapad ? extrappad : 0); };
235-
}
231+
return function getPad(pt) { return pt.pad + (pt.extrapad ? extrappad : 0); };
236232
}
237233

238234
var TEXTPAD = 3;

0 commit comments

Comments
 (0)