Skip to content

Commit 951161f

Browse files
committed
remove dead code
1 parent 6671dd7 commit 951161f

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

src/projection.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,6 @@ const reflectY = constant(
202202
})
203203
);
204204

205-
// Applies a point-wise projection to the given paired x and y channels.
206-
// Note: mutates values!
207-
// export function maybeProject(cx, cy, channels, values, context) {
208-
// const x = channels[cx] && channels[cx].scale === "x";
209-
// const y = channels[cy] && channels[cy].scale === "y";
210-
// if (x && y) {
211-
// project(cx, cy, values, context.projection);
212-
// } else if (x) {
213-
// throw new Error(`projection requires paired x and y channels; ${cx} is missing ${cy}`);
214-
// } else if (y) {
215-
// throw new Error(`projection requires paired x and y channels; ${cy} is missing ${cx}`);
216-
// }
217-
// }
218-
219205
// Applies a point-wise projection to the given paired x and y channels.
220206
// Note: mutates values!
221207
export function project(cx, cy, values, projection) {

src/style.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,10 @@ function applyClip(selection, mark, dimensions, context) {
350350
// Here we’re careful to apply the ARIA attributes to the outer G element when
351351
// clipping is applied, and to apply the ARIA attributes before any other
352352
// attributes (for readability).
353-
applyAria(selection, mark);
354-
applyAttr(selection, "clip-path", clipUrl);
355-
}
356-
357-
export function applyAria(selection, mark) {
358353
applyAttr(selection, "aria-label", mark.ariaLabel);
359354
applyAttr(selection, "aria-description", mark.ariaDescription);
360355
applyAttr(selection, "aria-hidden", mark.ariaHidden);
356+
applyAttr(selection, "clip-path", clipUrl);
361357
}
362358

363359
// Note: may mutate selection.node!

0 commit comments

Comments
 (0)