From f5a2422f32ed7fdf241de5c7fb0301ff3d1fc299 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Fri, 1 Jul 2016 10:28:34 -0400 Subject: [PATCH] Remove dead code that could have a memory leak Change-Id: I0a4994f1397160e479cee7eaa1e334e002d28c8c Fixes: 29115509 --- src/com/android/settings/search/Index.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/com/android/settings/search/Index.java b/src/com/android/settings/search/Index.java index fd67ea63c7a..976c6fb7e57 100644 --- a/src/com/android/settings/search/Index.java +++ b/src/com/android/settings/search/Index.java @@ -1165,17 +1165,6 @@ public class Index { return result.toString(); } - private int getResId(Context context, AttributeSet set, int[] attrs, int resId) { - final TypedArray sa = context.obtainStyledAttributes(set, attrs); - final TypedValue tv = sa.peekValue(resId); - - if (tv != null && tv.type == TypedValue.TYPE_STRING) { - return tv.resourceId; - } else { - return 0; - } - } - /** * A private class for updating the Index database */