Skip to content

Commit 88697bf

Browse files
committed
Remove unused function.
1 parent 67d0088 commit 88697bf

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxBitmap.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ of this software and associated documentation files (the "Software"), to deal
3838
import android.text.TextUtils;
3939
import android.util.Log;
4040

41-
public class Cocos2dxBitmap {
41+
public final class Cocos2dxBitmap {
4242
// ===========================================================
4343
// Constants
4444
// ===========================================================
@@ -76,17 +76,6 @@ public static void setContext(final Context context) {
7676
private static native void nativeInitBitmapDC(final int width,
7777
final int height, final byte[] pixels);
7878

79-
public static void createTextBitmap(String string, final String fontName,
80-
final int fontSize, final int alignment, final int width,
81-
final int height) {
82-
83-
createTextBitmapShadowStroke( string.getBytes(), fontName, fontSize, 255, 255, 255, 255, // text font and color
84-
alignment, width, height, // alignment and size
85-
false, 0.0f, 0.0f, 0.0f, 0.0f, // no shadow
86-
false, 255, 255, 255, 255, 0.0f); // no stroke
87-
88-
}
89-
9079
public static boolean createTextBitmapShadowStroke(byte[] bytes, final String fontName, int fontSize,
9180
int fontTintR, int fontTintG, int fontTintB, int fontTintA,
9281
int alignment, int width, int height,

0 commit comments

Comments
 (0)