summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-rw-r--r--platform/java/mupdf_native.c41
-rw-r--r--platform/java/mupdf_native.h8
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Text.java5
3 files changed, 0 insertions, 54 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index 592c6c7d..231b3db9 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -4359,26 +4359,6 @@ FUN(Text_finalize)(JNIEnv *env, jobject self)
}
JNIEXPORT jlong JNICALL
-FUN(Text_clone)(JNIEnv *env, jobject self)
-{
- fz_context *ctx = get_context(env);
- fz_text *old_text = from_Text(env, self);
- fz_text *new_text = NULL;
-
- if (!ctx || !old_text) return 0;
-
- fz_try(ctx)
- new_text = fz_clone_text(ctx, old_text);
- fz_catch(ctx)
- {
- jni_rethrow(env, ctx);
- return 0;
- }
-
- return jlong_cast(new_text);
-}
-
-JNIEXPORT jlong JNICALL
FUN(Text_newNative)(JNIEnv *env, jobject self)
{
fz_context *ctx = get_context(env);
@@ -4397,27 +4377,6 @@ FUN(Text_newNative)(JNIEnv *env, jobject self)
return jlong_cast(text);
}
-JNIEXPORT jlong JNICALL
-FUN(Text_cloneNative)(JNIEnv *env, jobject self, jobject jold)
-{
- fz_context *ctx = get_context(env);
- fz_text *old = from_Text(env, jold);
- fz_text *text = NULL;
-
- if (!ctx) return 0;
- if (!old) { jni_throw_arg(env, "old must not be null"); return 0; }
-
- fz_try(ctx)
- text = fz_clone_text(ctx, old);
- fz_catch(ctx)
- {
- jni_rethrow(env, ctx);
- return 0;
- }
-
- return jlong_cast(text);
-}
-
JNIEXPORT jobject JNICALL
FUN(Text_getBounds)(JNIEnv *env, jobject self, jobject jstroke, jobject jctm)
{
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h
index 85e68b8f..1813aa18 100644
--- a/platform/java/mupdf_native.h
+++ b/platform/java/mupdf_native.h
@@ -3276,14 +3276,6 @@ JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Text_newNative
/*
* Class: com_artifex_mupdf_fitz_Text
- * Method: cloneNative
- * Signature: (Lcom/artifex/mupdf/fitz/Text;)J
- */
-JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Text_cloneNative
- (JNIEnv *, jobject, jobject);
-
-/*
- * Class: com_artifex_mupdf_fitz_Text
* Method: showGlyph
* Signature: (Lcom/artifex/mupdf/fitz/Font;Lcom/artifex/mupdf/fitz/Matrix;IIZ)V
*/
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Text.java b/platform/java/src/com/artifex/mupdf/fitz/Text.java
index 6dbc4845..b5067db2 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Text.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Text.java
@@ -16,16 +16,11 @@ public class Text implements TextWalker
}
private native long newNative();
- private native long cloneNative(Text old);
private Text(long p) {
pointer = p;
}
- public Text(Text old) {
- pointer = cloneNative(old);
- }
-
public Text() {
pointer = newNative();
}