Skip to content

Commit 83f3bac

Browse files
committed
fix: remove unused variables (headers and propertySchema)
1 parent 3d97cc5 commit 83f3bac

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

apps/web/src/utils/upload.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Group } from '@opendatacapture/schemas/group';
44
import type { UnilingualInstrumentInfo } from '@opendatacapture/schemas/instrument';
55
import type { UploadInstrumentRecordsData } from '@opendatacapture/schemas/instrument-records';
66
import { encodeScopedSubjectId } from '@opendatacapture/subject-utils';
7-
import { parse, unparse } from 'papaparse';
7+
import { parse } from 'papaparse';
88
import { z } from 'zod';
99
import { z as z4 } from 'zod/v4';
1010

@@ -23,12 +23,8 @@ const ZOD_TYPE_NAMES = [
2323
'ZodEffects'
2424
] as const;
2525

26-
const INTERNAL_HEADERS = ['subjectID', 'date'];
27-
2826
const MONGOLIAN_VOWEL_SEPARATOR = String.fromCharCode(32, 6158);
2927

30-
const INTERNAL_HEADERS_SAMPLE_DATA = [MONGOLIAN_VOWEL_SEPARATOR + 'string', MONGOLIAN_VOWEL_SEPARATOR + 'yyyy-mm-dd'];
31-
3228
const SUBJECT_ID_REGEX = /^[^$\s]+$/;
3329

3430
type ZodTypeName = Extract<`${z.ZodFirstPartyTypeKind}`, (typeof ZOD_TYPE_NAMES)[number]>;
@@ -59,13 +55,6 @@ type UploadOperationResult<T> =
5955
value: T;
6056
};
6157

62-
type PropertySchema = {
63-
items?: {
64-
properties?: { [key: string]: unknown };
65-
};
66-
type: string;
67-
};
68-
6958
type AnyZodTypeDef = z.ZodTypeDef & { typeName: ZodTypeName };
7059

7160
type AnyZodArrayDef = z.ZodArrayDef & { type: z.AnyZodObject };

0 commit comments

Comments
 (0)