File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
model-server/src/main/kotlin/org/modelix/model/server/handlers Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import kotlinx.html.tr
37
37
import kotlinx.html.ul
38
38
import kotlinx.html.unsafe
39
39
import org.modelix.api.html.Paths
40
- import org.modelix.model.ModelFacade
41
40
import org.modelix.model.api.BuiltinLanguages
42
41
import org.modelix.model.api.INodeResolutionScope
43
42
import org.modelix.model.api.ITree
@@ -50,19 +49,6 @@ import kotlin.collections.set
50
49
51
50
class ContentExplorer (private val client : IModelClient , private val repoManager : RepositoriesManager ) {
52
51
53
- private val rootNodes: List <PNodeAdapter >
54
- get() {
55
- val nodeList = mutableListOf<PNodeAdapter >()
56
-
57
- for (repoId in repoManager.getRepositories()) {
58
- val branchRef = repoId.getBranchReference()
59
- val version = ModelFacade .loadCurrentVersion(client, branchRef) ? : continue
60
- val rootNode = PNodeAdapter (ITree .ROOT_ID , TreePointer (version.getTree()))
61
- nodeList.add(rootNode)
62
- }
63
- return nodeList
64
- }
65
-
66
52
fun init (application : Application ) {
67
53
application.routing {
68
54
get<Paths .getContent> {
You can’t perform that action at this time.
0 commit comments