Skip to content

Commit 7e968c3

Browse files
authored
Merge pull request #806 from wordpress-mobile/clean/debug-logging
Remove some unneeded logging
2 parents 336cc5b + fb21a4b commit 7e968c3

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/UserOperationEvent.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.wordpress.aztec.watchers.event.sequence
22

3-
import org.wordpress.android.util.AppLog
43
import org.wordpress.aztec.spans.AztecCodeSpan
54
import org.wordpress.aztec.spans.AztecHeadingSpan
65
import org.wordpress.aztec.spans.AztecListItemSpan
@@ -78,9 +77,6 @@ abstract class UserOperationEvent(var sequence: EventSequence<TextWatcherEvent>
7877
insideHeading = false
7978
}
8079

81-
AppLog.d(AppLog.T.EDITOR, "SEQUENCE OBSERVED COMPLETELY, IS IT WITHIN BLOCK?: " +
82-
(isInsideList || insideHeading || isInsidePre || isInsideCode))
83-
8480
return isInsideList || insideHeading || isInsidePre || isInsideCode
8581
}
8682

aztec/src/main/kotlin/org/wordpress/aztec/watchers/event/sequence/known/space/steps/TextWatcherEventInsertTextDelAfter.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.wordpress.aztec.watchers.event.sequence.known.space.steps
22

3-
import org.wordpress.android.util.AppLog
43
import org.wordpress.aztec.watchers.EndOfBufferMarkerAdder
54
import org.wordpress.aztec.watchers.event.text.AfterTextChangedEventData
65
import org.wordpress.aztec.watchers.event.text.BeforeTextChangedEventData
@@ -18,17 +17,14 @@ class TextWatcherEventInsertTextDelAfter(beforeEventData: BeforeTextChangedEvent
1817

1918
private fun testBeforeTextChangedEventData(data: BeforeTextChangedEventData): Boolean {
2019
beforeText = data.textBefore
21-
AppLog.d(AppLog.T.EDITOR, "INSERTSPECIAL testBeforeTextChangedEventData: " + (data.count == 0 && data.after > 0))
2220
return data.count == 0 && data.after > 0
2321
}
2422

2523
private fun testOnTextChangedEventData(data: OnTextChangedEventData): Boolean {
26-
AppLog.d(AppLog.T.EDITOR, "INSERTSPECIAL testOnTextChangedEventData: " + (data.start >= 0 && data.count > 0 && data.textOn!!.length > 0))
2724
return data.start >= 0 && data.count > 0 && data.textOn!!.length > 0
2825
}
2926

3027
private fun testAfterTextChangedEventData(data: AfterTextChangedEventData): Boolean {
31-
AppLog.d(AppLog.T.EDITOR, "INSERTSPECIAL testAfterTextChangedEventData: " + (EndOfBufferMarkerAdder.safeLength(beforeText!!) == EndOfBufferMarkerAdder.safeLength(data.textAfter!!)))
3228
return EndOfBufferMarkerAdder.safeLength(beforeText!!) == EndOfBufferMarkerAdder.safeLength(data.textAfter!!)
3329
}
3430

0 commit comments

Comments
 (0)