Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
invokesus committed Jul 26, 2018
1 parent 4f68bdb commit 201f48b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/compile/data/optimizers.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import {hasIntersection, keys} from '../../util';
import {DataFlowNode, isTransformNode, OutputNode, TransformNode} from './dataflow';
import {FacetNode} from './facet';

import {ParseNode} from './formatparse';

import {SourceNode} from './source';

import {TimeUnitNode} from './timeunit';
// import {WindowTransformNode} from './window';

/**
* Start optimization path at the leaves. Useful for merging up or removing things.
Expand Down Expand Up @@ -71,7 +67,7 @@ function mergeBucket(parent: DataFlowNode, nodes: DataFlowNode[]) {
}

/**
* Merge Identical Transforms at forks.
* Merge Identical Transforms at forks by comparing hashes.
*/
export function mergeIdenticalTransforms(node: DataFlowNode) {
const transforms = node.children.filter((x): x is TransformNode => isTransformNode(x));
Expand Down
1 change: 0 additions & 1 deletion test/compile/selection/timeunit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ describe('Selection time unit', () => {

assert.notEqual(tuIdx, -1);
assert.notEqual(selIdx, -1);
// assert.isAbove(selIdx, tuIdx);
});

it('removes duplicate time unit formulae', () => {
Expand Down

0 comments on commit 201f48b

Please sign in to comment.