Skip to content

Commit

Permalink
Merge pull request wordpress-mobile#806 from wordpress-mobile/clean/d…
Browse files Browse the repository at this point in the history
…ebug-logging

Remove some unneeded logging
  • Loading branch information
mzorz authored Apr 9, 2019
2 parents 336cc5b + fb21a4b commit 7e968c3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -78,9 +77,6 @@ abstract class UserOperationEvent(var sequence: EventSequence<TextWatcherEvent>
insideHeading = false
}

AppLog.d(AppLog.T.EDITOR, "SEQUENCE OBSERVED COMPLETELY, IS IT WITHIN BLOCK?: " +
(isInsideList || insideHeading || isInsidePre || isInsideCode))

return isInsideList || insideHeading || isInsidePre || isInsideCode
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -18,17 +17,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!!)
}

Expand Down

0 comments on commit 7e968c3

Please sign in to comment.