Skip to content

Commit

Permalink
Removed unnecessary print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
JetpackDuba committed Nov 11, 2023
1 parent fbdf5a4 commit d7f69f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions rs/src/watch_directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -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))
}

Expand All @@ -309,7 +307,6 @@ fun Modifier.horizontalDragContainer(dragDropState: HorizontalDragDropState, onD
}
},
onDragStopped = {
println("On drag stopped")
dragDropState.onDragInterrupted()
},
)
Expand Down

0 comments on commit d7f69f6

Please sign in to comment.