Skip to content

Commit 0e8e308

Browse files
committed
Analysis: Resolve parameter is never and could be renamed to _ warnings
Warning Message: "Parameter 'xyz' is never used, could be renamed to _" Renaming the parameter 'xyz' that is never used to '_' or removing it completely is the recommended action to resolve this kind of warnings.
1 parent 6ba043c commit 0e8e308

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
706706
temp
707707
}
708708

709-
val emptyEditTextBackspaceDetector = InputFilter { source, start, end, dest, dstart, dend ->
709+
val emptyEditTextBackspaceDetector = InputFilter { source, start, _, _, dstart, dend ->
710710
if (selectionStart == 0 && selectionEnd == 0
711711
&& start == 0
712712
&& dstart == 0 && dend == 0

aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class InlineFormatter(editor: AztecText, val codeStyle: CodeStyle, private val h
6464
fun toggleAny(textFormats: Set<ITextFormat>) {
6565
if (!textFormats
6666
.filter { containsInlineStyle(it) }
67-
.fold(false) { found, containedTextFormat -> removeInlineStyle(containedTextFormat); true }) {
67+
.fold(false) { _, containedTextFormat -> removeInlineStyle(containedTextFormat); true }) {
6868
removeAllExclusiveFormats()
6969
applyInlineStyle(textFormats.first())
7070
}

0 commit comments

Comments
 (0)