Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yliuuuu committed Nov 9, 2023
1 parent 9ac15ce commit c5a4977
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,6 @@ class MemoryCatalog(
}
}
}
// while (kPathIter.hasNext()) {
// val currKPath = kPathIter.next()
// candidatePath.forEach {
// val match = mutableListOf<String>()
// 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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c5a4977

Please sign in to comment.