File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ import { allowAbort } from './util';
7
7
const createConvertInternalToExpanded = function ( ) {
8
8
const usedDefinitions = new Set < string > ( ) ;
9
9
10
- function clearUsedDefinitions ( ) {
11
- usedDefinitions . clear ( ) ;
12
- }
13
-
14
10
function getUsedDefinitions ( ) {
15
11
const filteredDefinitions = Object . fromEntries (
16
12
Object . entries ( RELAXED_EJSON_DEFINITIONS ) . filter ( ( [ key ] ) => usedDefinitions . has ( key ) )
@@ -102,7 +98,6 @@ const createConvertInternalToExpanded = function() {
102
98
internalSchema : InternalSchema ,
103
99
options : { signal ?: AbortSignal } = { }
104
100
) : Promise < ExpandedJSONSchema > {
105
- clearUsedDefinitions ( ) ;
106
101
const { required, properties } = await parseFields ( internalSchema . fields , options . signal ) ;
107
102
const schema : ExpandedJSONSchema = {
108
103
type : 'object' ,
Original file line number Diff line number Diff line change @@ -250,10 +250,6 @@ export const RELAXED_EJSON_DEFINITIONS = {
250
250
const createConvertInternalToStandard = function ( ) {
251
251
const usedDefinitions = new Set < string > ( ) ;
252
252
253
- function clearUsedDefinitions ( ) {
254
- usedDefinitions . clear ( ) ;
255
- }
256
-
257
253
function getUsedDefinitions ( ) {
258
254
const filteredDefinitions = Object . fromEntries (
259
255
Object . entries ( RELAXED_EJSON_DEFINITIONS ) . filter ( ( [ key ] ) => usedDefinitions . has ( key ) )
@@ -325,7 +321,6 @@ const createConvertInternalToStandard = function() {
325
321
internalSchema : InternalSchema ,
326
322
options : { signal ?: AbortSignal } = { }
327
323
) : Promise < StandardJSONSchema > {
328
- clearUsedDefinitions ( ) ;
329
324
const { required, properties } = await parseFields ( internalSchema . fields , options . signal ) ;
330
325
const schema : StandardJSONSchema = {
331
326
$schema : 'https://json-schema.org/draft/2020-12/schema' ,
You can’t perform that action at this time.
0 commit comments