From 06cb8034a7d525ece7afc42d5e2ad81ec6a8cb2b Mon Sep 17 00:00:00 2001 From: Matthew Pope Date: Fri, 2 Aug 2024 10:26:34 -0700 Subject: [PATCH] Clean up unused code --- .../com/amazon/ionelement/impl/IonElementLoaderImpl.kt | 10 ---------- src/main/kotlin/com/amazon/ionelement/impl/ListView.kt | 3 --- 2 files changed, 13 deletions(-) delete mode 100644 src/main/kotlin/com/amazon/ionelement/impl/ListView.kt diff --git a/src/main/kotlin/com/amazon/ionelement/impl/IonElementLoaderImpl.kt b/src/main/kotlin/com/amazon/ionelement/impl/IonElementLoaderImpl.kt index 1cc72cd..997e269 100644 --- a/src/main/kotlin/com/amazon/ionelement/impl/IonElementLoaderImpl.kt +++ b/src/main/kotlin/com/amazon/ionelement/impl/IonElementLoaderImpl.kt @@ -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 diff --git a/src/main/kotlin/com/amazon/ionelement/impl/ListView.kt b/src/main/kotlin/com/amazon/ionelement/impl/ListView.kt deleted file mode 100644 index 92d9c5c..0000000 --- a/src/main/kotlin/com/amazon/ionelement/impl/ListView.kt +++ /dev/null @@ -1,3 +0,0 @@ -// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -package com.amazon.ionelement.impl