Skip to content

Commit 1e29552

Browse files
cco3Android Code Review
authored andcommitted
Merge "We don't need these local references."
2 parents da88218 + 9712411 commit 1e29552

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/java/android/text/method/MultiTapKeyListener.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ public boolean onKeyDown(View view, Editable content,
116116
content.replace(selStart, selEnd,
117117
String.valueOf(current).toUpperCase());
118118
removeTimeouts(content);
119-
Timeout t = new Timeout(content);
119+
new Timeout(content); // for its side effects
120120

121121
return true;
122122
}
123123
if (Character.isUpperCase(current)) {
124124
content.replace(selStart, selEnd,
125125
String.valueOf(current).toLowerCase());
126126
removeTimeouts(content);
127-
Timeout t = new Timeout(content);
127+
new Timeout(content); // for its side effects
128128

129129
return true;
130130
}
@@ -140,7 +140,7 @@ public boolean onKeyDown(View view, Editable content,
140140

141141
content.replace(selStart, selEnd, val, ix, ix + 1);
142142
removeTimeouts(content);
143-
Timeout t = new Timeout(content);
143+
new Timeout(content); // for its side effects
144144

145145
return true;
146146
}
@@ -206,7 +206,7 @@ public boolean onKeyDown(View view, Editable content,
206206
}
207207

208208
removeTimeouts(content);
209-
Timeout t = new Timeout(content);
209+
new Timeout(content); // for its side effects
210210

211211
// Set up the callback so we can remove the timeout if the
212212
// cursor moves.

0 commit comments

Comments
 (0)