Skip to content

Commit

Permalink
Clean up unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Aug 2, 2024
1 parent 5857a89 commit 06cb803
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/main/kotlin/com/amazon/ionelement/impl/IonElementLoaderImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ internal class IonElementLoaderImpl(private val options: IonElementLoaderOptions
}
}

private fun IonReader.getSpanProvider(): SpanProvider? = this.asFacet(SpanProvider::class.java)

private fun SpanProvider.currentLocation(): IonLocation? {
return when (val currentSpan = currentSpan()) {
is TextSpan -> IonTextLocation(currentSpan.startLine, currentSpan.startColumn)
is OffsetSpan -> IonBinaryLocation(currentSpan.startOffset)
else -> null
}
}

private fun IonReader.currentLocation(): IonLocation? =
when {
// Can't attempt to get a SpanProvider unless we're on a value
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/com/amazon/ionelement/impl/ListView.kt

This file was deleted.

0 comments on commit 06cb803

Please sign in to comment.