Skip to content

Commit

Permalink
Merge pull request #1089 from glimmerjs/internal/remove-unused-epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored May 11, 2020
2 parents 4046485 + 3cbb496 commit a0d1eec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion packages/@glimmer/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
beginTrackFrame,
endTrackFrame,
consumeTag,
EPOCH,
isTracking,
track,
trackedData,
Expand Down
14 changes: 1 addition & 13 deletions packages/@glimmer/validator/lib/tracking.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import { DEBUG } from '@glimmer/env';
import {
Tag,
combine,
createTag,
dirtyTag,
CONSTANT_TAG,
validateTag,
Revision,
valueForTag,
} from './validators';
import { Tag, combine, CONSTANT_TAG, validateTag, Revision, valueForTag } from './validators';
import { tagFor, dirtyTagFor } from './meta';
import { markTagAsConsumed, runInAutotrackingTransaction, assertTagNotConsumed } from './debug';

Expand Down Expand Up @@ -207,8 +198,6 @@ export function untrack(callback: () => void) {

//////////

export const EPOCH = createTag();

export type Getter<T, K extends keyof T> = (self: T) => T[K] | undefined;
export type Setter<T, K extends keyof T> = (self: T, value: T[K]) => void;

Expand Down Expand Up @@ -240,7 +229,6 @@ export function trackedData<T extends object, K extends keyof T>(
assertTagNotConsumed!(tagFor(self, key), self, key, true);
}

dirtyTag(EPOCH);
dirtyTagFor(self, key);
values.set(self, value);
}
Expand Down

0 comments on commit a0d1eec

Please sign in to comment.