Skip to content
Snippets Groups Projects
Commit add6dfb8 authored by satok's avatar satok
Browse files

Remove unused code

Change-Id: I894c0850e803bdfc7b590a62ddd4076a3a4e4658
parent 907371b5
No related branches found
No related tags found
No related merge requests found
...@@ -722,13 +722,6 @@ public class PointerTracker { ...@@ -722,13 +722,6 @@ public class PointerTracker {
final int[] codes = mKeyDetector.newCodeArray(); final int[] codes = mKeyDetector.newCodeArray();
mKeyDetector.getKeyAndNearbyCodes(x, y, codes); mKeyDetector.getKeyAndNearbyCodes(x, y, codes);
// Swap the first and second values in the codes array if the primary code is not the
// first value but the second value in the array. This happens when key debouncing is
// in effect.
if (codes.length >= 2 && codes[0] != code && codes[1] == code) {
codes[1] = codes[0];
codes[0] = code;
}
callListenerOnCodeInput(key, code, codes, x, y); callListenerOnCodeInput(key, code, codes, x, y);
callListenerOnRelease(key, code, false); callListenerOnRelease(key, code, false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment