Skip to content

Commit

Permalink
chore(model): Remove the unused XML mapper
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Jul 3, 2024
1 parent 2c3d0a8 commit 78fb986
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {
api(projects.utils.spdxUtils)

api(libs.jackson.databind)
api(libs.jackson.dataformat.xml)
api(libs.jackson.dataformat.yaml)
api(libs.log4j.api)

Expand Down
5 changes: 0 additions & 5 deletions model/src/main/kotlin/FileFormat.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ enum class FileFormat(val mapper: ObjectMapper, val fileExtension: String, varar
*/
JSON(jsonMapper, "json"),

/**
* Specifies the [XML](http://www.xml.org/) format.
*/
XML(xmlMapper, "xml"),

/**
* Specifies the [YAML](http://yaml.org/) format.
*/
Expand Down
2 changes: 0 additions & 2 deletions model/src/main/kotlin/Mappers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.databind.json.JsonMapper
import com.fasterxml.jackson.databind.node.MissingNode
import com.fasterxml.jackson.dataformat.xml.XmlMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper
Expand All @@ -50,7 +49,6 @@ val mapperConfig: ObjectMapper.() -> Unit = {
}

val jsonMapper = JsonMapper().apply(mapperConfig)
val xmlMapper = XmlMapper().apply(mapperConfig)

val yamlMapper: YAMLMapper = YAMLMapper(
YAMLFactory.builder()
Expand Down

0 comments on commit 78fb986

Please sign in to comment.