Removed unnecessary print statements

This commit is contained in:
Abdelilah El Aissaoui 2023-11-11 16:54:08 +01:00
parent fbdf5a4da8
commit d7f69f69ff
No known key found for this signature in database
GPG key ID: 7587FC860F594869
2 changed files with 1 additions and 7 deletions

View file

@ -51,10 +51,7 @@ pub fn watch_directory(
let first_path = paths_cached.first().unwrap();
let is_dir = PathBuf::from(first_path).is_dir();
if is_dir {
println!("Ignored path cached {first_path} because it is a dir");
} else {
println!("Sending single file event to Kotlin side");
if !is_dir {
notifier.detected_change(paths_cached.to_vec());
}
} else if !paths_cached.is_empty() {

View file

@ -134,7 +134,6 @@ class HorizontalDragDropState internal constructor(
val startOffset = draggingItem.offset + draggingItemOffset
val endOffset = startOffset + draggingItem.size
val middleOffset = startOffset + (endOffset - startOffset) / 2f
println("Middle offset is $middleOffset")
val targetItem = state.layoutInfo.visibleItemsInfo.find { item ->
middleOffset.toInt() in item.offset..item.offsetEnd &&
@ -292,7 +291,6 @@ class VerticalDragDropState internal constructor(
@Composable
fun Modifier.horizontalDragContainer(dragDropState: HorizontalDragDropState, onDraggedTab: (Int) -> Unit): Modifier {
val state = rememberDraggableState {
println("Dragging horizontally $it")
dragDropState.onDrag(Offset(it, 0f))
}
@ -309,7 +307,6 @@ fun Modifier.horizontalDragContainer(dragDropState: HorizontalDragDropState, onD
}
},
onDragStopped = {
println("On drag stopped")
dragDropState.onDragInterrupted()
},
)