commit | 7209deedcde98ea0cca519e73d910bafa5193334 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Jul 09 14:19:01 2015 -0700 |
committer | John Reck <jreck@google.com> | Thu Jul 09 21:25:52 2015 +0000 |
tree | 659d736fb692e48877d88da3c3e54ff7cd876080 | |
parent | adebbebaa7d516628b5946dd023ff8726e75d2b0 [diff] |
Delete dead code Bug: 22378829 Every time setText is called a BoringLayout is created. BoringLayout internally creates a new Paint called mWorkPaint. However, creating a Paint turns out to be somewhat substantial amount of work, and mWorkPaint is never actually used. Deleting this shaves off roughly 50ms and 1,000 object creations during a fling on a listview. Change-Id: I5d03402b9027df6ce0f3e58160752c66c69a4d2d