Skip to content

Commit

Permalink
remove outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Nov 20, 2020
1 parent 65bf6db commit dbebfae
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spotlight-client/src/datastores/Metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ type PopulationBreakdownByLocationRecord = BaseMetricFields &
population: number;
};

// TODO: should these even be different types? why not just PopulationSnapshot?
type PopulationSnapshot = Metric<PopulationBreakdownByLocationRecord>;

type SentenceTypeByLocationRecord = BaseMetricFields &
Expand All @@ -103,11 +102,6 @@ type InitParams<RecordFormat> = {
contentSource: MetricsContent;
dataTransformer: DataTransformer<RecordFormat>;
sourceFileName: string;
// NOTE: these fields can only be populated if the RecordFormat contains the requisite fields;
// however, they are not REQUIRED to be populated in those cases (e.g., population snapshots
// contain demographic fields but do not need to support demographic filters).
// I think this means it's possible to inadvertently break a filter by setting it to `undefined`
// without triggering a compiler error. Maybe that can be fixed but I have not done so here
defaultLocalityId: RecordFormat extends LocalityFields ? string : undefined;
defaultDemographicView: RecordFormat extends DemographicFields
? DemographicView
Expand Down

0 comments on commit dbebfae

Please sign in to comment.