From 036141e864c1d1d00a81d69aef1d8e8fc85343e6 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 24 Oct 2023 15:43:07 -0400 Subject: [PATCH] Remove JVM/Native JMESPath utils --- .../smithy/kotlin/runtime/util/JMESPathJVM.kt | 16 ---------------- .../smithy/kotlin/runtime/util/JMESPathNative.kt | 14 -------------- 2 files changed, 30 deletions(-) delete mode 100644 runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/util/JMESPathJVM.kt delete mode 100644 runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/util/JMESPathNative.kt diff --git a/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/util/JMESPathJVM.kt b/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/util/JMESPathJVM.kt deleted file mode 100644 index 72ae3541b..000000000 --- a/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/util/JMESPathJVM.kt +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -package aws.smithy.kotlin.runtime.util - -import aws.smithy.kotlin.runtime.InternalApi - -@InternalApi -@JvmName("noOpUnnestedCollection") -public actual inline fun Collection.flattenIfPossible(): Collection = this - -@InternalApi -@JvmName("flattenNestedCollection") -public actual inline fun Collection>.flattenIfPossible(): Collection = flatten() diff --git a/runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/util/JMESPathNative.kt b/runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/util/JMESPathNative.kt deleted file mode 100644 index 0ab75448b..000000000 --- a/runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/util/JMESPathNative.kt +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -package aws.smithy.kotlin.runtime.util - -import aws.smithy.kotlin.runtime.InternalApi - -@InternalApi -public actual inline fun Collection.flattenIfPossible(): Collection = this - -@InternalApi -public actual inline fun Collection>.flattenIfPossible(): Collection = flatten()