Merge "Remove dead code that could have a memory leak" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-07-01 16:00:34 +00:00
committed by Android (Google) Code Review

View File

@@ -1165,17 +1165,6 @@ public class Index {
return result.toString(); 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 * A private class for updating the Index database
*/ */