From c5a49771cb7834555192ef37420afda8f1f31511 Mon Sep 17 00:00:00 2001 From: Yingtao Liu Date: Thu, 9 Nov 2023 11:08:06 -0800 Subject: [PATCH] lint --- .../partiql/plugins/memory/MemoryCatalog.kt | 24 ------------------- .../partiql/plugins/memory/MemoryConnector.kt | 6 ----- 2 files changed, 30 deletions(-) diff --git a/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryCatalog.kt b/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryCatalog.kt index 4fc89511b5..299523b57c 100644 --- a/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryCatalog.kt +++ b/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryCatalog.kt @@ -49,30 +49,6 @@ class MemoryCatalog( } } } -// while (kPathIter.hasNext()) { -// val currKPath = kPathIter.next() -// candidatePath.forEach { -// val match = mutableListOf() -// val candidateIterator = it.iterator() -// while (candidateIterator.hasNext()) { -// if (candidateIterator.next() == currKPath) { -// match.add(currKPath) -// val pathIteratorCopy = kPath.steps.listIterator(kPathIter.nextIndex()) -// candidateIterator.forEachRemaining { -// val nextPath = pathIteratorCopy.next() -// if (it != nextPath) { -// match.clear() -// return@forEachRemaining -// } -// match.add(it) -// } -// } -// } -// if (match.isNotEmpty()) { -// return this[match.joinToString(".")]?.let { it1 -> MemoryObject(it1) } -// } -// } -// } return null } } diff --git a/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryConnector.kt b/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryConnector.kt index 5db4eab8a9..9fce2172ea 100644 --- a/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryConnector.kt +++ b/plugins/partiql-memory/src/main/kotlin/org/partiql/plugins/memory/MemoryConnector.kt @@ -36,12 +36,6 @@ class MemoryConnector( } override fun getObjectHandle(session: ConnectorSession, path: BindingPath): ConnectorObjectHandle? { -// val kPath = ConnectorObjectPath(path.steps.map { it.loweredName }) -// val k = kPath.steps.joinToString(".") -// return when (val v = catalog[k]) { -// null -> null -// else -> ConnectorObjectHandle(kPath, MemoryObject(v)) -// } val value = catalog.lookup(path) ?: return null return ConnectorObjectHandle( absolutePath = ConnectorObjectPath(value.path),