Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
schani committed Jun 26, 2018
1 parent a8667c6 commit f6b4d97
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/quicktype-core/input/Inference.ts
Expand Up @@ -2,7 +2,6 @@ import { Value, Tag, valueTag, CompressedJSON } from "./CompressedJSON";
import { assertNever } from "../support/Support";
import { TypeBuilder } from "../TypeBuilder";
import { UnionBuilder, UnionAccumulator } from "../UnionBuilder";
import { isTime, isDateTime, isDate } from "../DateTime";
import { ClassProperty } from "../Type";
import { TypeAttributes, emptyTypeAttributes } from "../TypeAttributes";
import { StringTypes } from "../StringTypes";
Expand Down Expand Up @@ -63,10 +62,8 @@ class InferenceUnionBuilder extends UnionBuilder<TypeBuilder, NestedValueArray,
}
}

function canBeEnumCase(s: string): boolean {
if (s.length === 0) return true; // FIXME: Do we really want this?
// FIXME: Haven't we dealt with date-time in compressed JSON?
return !isDate(s) && !isTime(s) && !isDateTime(s);
function canBeEnumCase(_s: string): boolean {
return true;
}

export type Accumulator = UnionAccumulator<NestedValueArray, NestedValueArray>;
Expand Down

0 comments on commit f6b4d97

Please sign in to comment.