Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Apr 30, 2018
1 parent a855ad9 commit d4dc47f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ export function flatAccessWithDatum(path: string, datum='datum') {
* For example, `foo["bar"].baz` becomes `foo\\.bar\\.baz`.
*/
export function replacePathInField(path: string) {
if (!path) {
return path;
}
return `${splitAccessPath(path).map(p => p.replace('.', '\\.')).join('\\.')}`;
}

Expand All @@ -324,9 +321,6 @@ export function replacePathInField(path: string) {
* For example, `foo["bar"].baz` becomes `foo.bar.baz`.
*/
export function removePathFromField(path: string) {
if (!path) {
return path;
}
return `${splitAccessPath(path).join('.')}`;
}

Expand Down

0 comments on commit d4dc47f

Please sign in to comment.