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

am: d1e94a10eb

Change-Id: I9c9f6f5cce2ff475148d498896dc36f0b381c977
This commit is contained in:
Jason Monk
2016-07-01 16:07:01 +00:00
committed by android-build-merger

View File

@@ -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
*/