Skip to content

Commit d2f0dcd

Browse files
Romain GuyAndroid (Google) Code Review
authored andcommitted
Merge "Remove unused code"
2 parents bad1216 + 68fc1df commit d2f0dcd

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

graphics/java/android/graphics/Paint.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,8 +2144,6 @@ private static native int native_setRasterizer(int native_object,
21442144
private static native void native_setTextAlign(int native_object,
21452145
int align);
21462146

2147-
private static native float native_getFontMetrics(int native_paint,
2148-
FontMetrics metrics);
21492147
private static native int native_getTextWidths(int native_object,
21502148
char[] text, int index, int count, float[] widths);
21512149
private static native int native_getTextWidths(int native_object,

tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -903,17 +903,6 @@ public Rasterizer_Delegate getRasterizer() {
903903
delegate.mTextAlign = align;
904904
}
905905

906-
@LayoutlibDelegate
907-
/*package*/ static float native_getFontMetrics(int native_paint, FontMetrics metrics) {
908-
// get the delegate from the native int.
909-
Paint_Delegate delegate = sManager.getDelegate(native_paint);
910-
if (delegate == null) {
911-
return 0.f;
912-
}
913-
914-
return delegate.getFontMetrics(metrics);
915-
}
916-
917906
@LayoutlibDelegate
918907
/*package*/ static int native_getTextWidths(int native_object, char[] text, int index,
919908
int count, float[] widths) {

0 commit comments

Comments
 (0)