Skip to content

Commit b48725e

Browse files
committed
refactor: optimize structures
1 parent 9482ffe commit b48725e

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/main/kotlin/com/github/xepozz/git_churn/GitChurnDescriptor.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ data class GitChurnDescriptor(
1212
}
1313

1414
data class FileNodeDescriptor(
15-
val path: VirtualFile,
1615
val changeCount: Int,
1716
)

src/main/kotlin/com/github/xepozz/git_churn/OutputParser.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ object OutputParser {
2525
if (virtualFile != null && virtualFile.exists()) {
2626
result.maxCount = maxOf(result.maxCount, count)
2727
result.filesInfo[virtualFile] = FileNodeDescriptor(
28-
path = virtualFile,
2928
changeCount = count,
3029
)
3130
}
@@ -74,7 +73,6 @@ object OutputParser {
7473
val changeCount = findMaxChangeCountForDirectory(directory, filesInfo)
7574
maxCount = maxOf(maxCount, changeCount)
7675
filesInfo[directory] = FileNodeDescriptor(
77-
path = directory,
7876
changeCount = changeCount,
7977
)
8078
}

0 commit comments

Comments
 (0)