Merge "Remove dead code that could have a memory leak" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d1e94a10eb
@@ -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
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user