Skip to content

Commit b458473

Browse files
authored
Merge pull request #142 from hed-standard/delete-stub-bids-schema-functions
Delete unused functions related to BIDS schema spec parsing
2 parents 28c0c59 + ef9a681 commit b458473

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

bids/schema.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,11 @@ export function validateSchemasSpec(schemasSpec) {
3939
const newSchemasSpec = new SchemasSpec()
4040
newSchemasSpec.data = schemasSpec
4141
return [newSchemasSpec, []]
42-
} else if ('version' in schemasSpec || 'path' in schemasSpec || 'libraries' in schemasSpec) {
43-
return [convertOldSpecToSchemasSpec(schemasSpec), []]
4442
} else {
4543
return [null, [generateIssue('invalidSchemaSpecification', { spec: JSON.stringify(schemasSpec) })]]
4644
}
4745
}
4846

49-
function convertOldSpecToSchemasSpec(oldSpec) {
50-
const newSpec = new SchemasSpec()
51-
// TODO: implement
52-
return newSpec
53-
}
54-
5547
export function parseSchemasSpec(hedVersion) {
5648
const schemasSpec = new SchemasSpec()
5749
const processVersion = asArray(hedVersion)
@@ -120,11 +112,3 @@ function splitLibraryAndVersion(schemaVersion, originalVersion) {
120112
}
121113
return [[library, version], []]
122114
}
123-
124-
export function validateSchemaSpec(schemaSpec) {
125-
// ToDO: implement
126-
if (!(schemaSpec instanceof SchemaSpec)) {
127-
return [null, [generateIssue('invalidSchemaSpecification', { spec: JSON.stringify(schemaSpec) })]]
128-
}
129-
return [schemaSpec, []]
130-
}

0 commit comments

Comments
 (0)