Remove unnecessary logs

This commit is contained in:
Abdelilah El Aissaoui 2022-06-09 03:13:15 +02:00
parent e32498d0c7
commit 8810150429
4 changed files with 2 additions and 11 deletions

View File

@ -119,13 +119,8 @@ class App {
) {
val tabs by tabsFlow.collectAsState()
val tabsInformationList = tabs.sortedBy { it.key }
println("Tabs count ${tabs.count()}")
val selectedTabKey = remember { mutableStateOf(0) }
println("Selected tab key: ${selectedTabKey.value}")
Column(
modifier = Modifier.background(MaterialTheme.colors.background)
) {

View File

@ -52,8 +52,6 @@ class FileChangesWatcher @Inject constructor() {
while (watchService.take().also { key = it } != null) {
val events = key.pollEvents()
println("Polled events on dir ${keys[key]}")
val dir = keys[key] ?: return@withContext
val hasGitDirectoryChanged = dir.startsWith("$pathStr$systemSeparator.git$systemSeparator")
@ -66,7 +64,7 @@ class FileChangesWatcher @Inject constructor() {
if(isGitMessageFile(pathStr, fullPathOfFileChanged))
return@withContext
}
println("Has git dir changed: $hasGitDirectoryChanged")
_changesNotifier.emit(hasGitDirectoryChanged)

View File

@ -952,7 +952,7 @@ fun UncommitedChangesGraphNode(
isSelected: Boolean,
) {
val density = LocalDensity.current.density
println("Density is $density")
val laneWidthWithDensity = remember(density) {
LANE_WIDTH * density
}

View File

@ -40,8 +40,6 @@ class StatusViewModel @Inject constructor(
) { git ->
val messageToPersist = savedCommitMessage.message.ifBlank { null }
println("Persisting message: $messageToPersist")
if (git.repository.repositoryState.isMerging) {
git.repository.writeMergeCommitMsg(messageToPersist)
} else if (git.repository.repositoryState == RepositoryState.SAFE) {