From 6579cb02a614486f8bf38cfb4c659b99f9a64977 Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 9 Apr 2019 08:58:33 -0300 Subject: [PATCH 1/2] removed unneeded logging --- .../aztec/watchers/event/sequence/UserOperationEvent.kt | 3 --- .../known/space/steps/TextWatcherEventInsertTextDelAfter.kt | 3 --- 2 files changed, 6 deletions(-) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt index b525ce2c0..8f75c79a9 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt @@ -78,9 +78,6 @@ abstract class UserOperationEvent(var sequence: EventSequence insideHeading = false } - AppLog.d(AppLog.T.EDITOR, "SEQUENCE OBSERVED COMPLETELY, IS IT WITHIN BLOCK?: " + - (isInsideList || insideHeading || isInsidePre || isInsideCode)) - return isInsideList || insideHeading || isInsidePre || isInsideCode } diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt index ede64e6dd..3aa208f4f 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt @@ -18,17 +18,14 @@ class TextWatcherEventInsertTextDelAfter(beforeEventData: BeforeTextChangedEvent private fun testBeforeTextChangedEventData(data: BeforeTextChangedEventData): Boolean { beforeText = data.textBefore - AppLog.d(AppLog.T.EDITOR, "INSERTSPECIAL testBeforeTextChangedEventData: " + (data.count == 0 && data.after > 0)) return data.count == 0 && data.after > 0 } private fun testOnTextChangedEventData(data: OnTextChangedEventData): Boolean { - AppLog.d(AppLog.T.EDITOR, "INSERTSPECIAL testOnTextChangedEventData: " + (data.start >= 0 && data.count > 0 && data.textOn!!.length > 0)) return data.start >= 0 && data.count > 0 && data.textOn!!.length > 0 } private fun testAfterTextChangedEventData(data: AfterTextChangedEventData): Boolean { - AppLog.d(AppLog.T.EDITOR, "INSERTSPECIAL testAfterTextChangedEventData: " + (EndOfBufferMarkerAdder.safeLength(beforeText!!) == EndOfBufferMarkerAdder.safeLength(data.textAfter!!))) return EndOfBufferMarkerAdder.safeLength(beforeText!!) == EndOfBufferMarkerAdder.safeLength(data.textAfter!!) } From fb21a4b8c0bab6f48209a152d63c87e89afce927 Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 9 Apr 2019 09:02:15 -0300 Subject: [PATCH 2/2] removed unused imports --- .../aztec/watchers/event/sequence/UserOperationEvent.kt | 1 - .../known/space/steps/TextWatcherEventInsertTextDelAfter.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt index 8f75c79a9..235f38220 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt @@ -1,6 +1,5 @@ package org.wordpress.aztec.watchers.event.sequence -import org.wordpress.android.util.AppLog import org.wordpress.aztec.spans.AztecCodeSpan import org.wordpress.aztec.spans.AztecHeadingSpan import org.wordpress.aztec.spans.AztecListItemSpan diff --git a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt index 3aa208f4f..6bf4f759e 100644 --- a/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt +++ b/aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt @@ -1,6 +1,5 @@ package org.wordpress.aztec.watchers.event.sequence.known.space.steps -import org.wordpress.android.util.AppLog import org.wordpress.aztec.watchers.EndOfBufferMarkerAdder import org.wordpress.aztec.watchers.event.text.AfterTextChangedEventData import org.wordpress.aztec.watchers.event.text.BeforeTextChangedEventData