Merge "Remove unused code"

This commit is contained in:
Romain Guy
2012-01-19 17:42:10 -08:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 13 deletions

View File

@@ -2144,8 +2144,6 @@ public class Paint {
private static native void native_setTextAlign(int native_object,
int align);
private static native float native_getFontMetrics(int native_paint,
FontMetrics metrics);
private static native int native_getTextWidths(int native_object,
char[] text, int index, int count, float[] widths);
private static native int native_getTextWidths(int native_object,

View File

@@ -903,17 +903,6 @@ public class Paint_Delegate {
delegate.mTextAlign = align;
}
@LayoutlibDelegate
/*package*/ static float native_getFontMetrics(int native_paint, FontMetrics metrics) {
// get the delegate from the native int.
Paint_Delegate delegate = sManager.getDelegate(native_paint);
if (delegate == null) {
return 0.f;
}
return delegate.getFontMetrics(metrics);
}
@LayoutlibDelegate
/*package*/ static int native_getTextWidths(int native_object, char[] text, int index,
int count, float[] widths) {