From 138b2c4fd1d8722060b6b46ab9160f668cd54d0b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 6 Sep 2018 19:38:31 +0800 Subject: jni: Remove unused flags and improve the names of some others. --- .../java/src/com/artifex/mupdf/fitz/Device.java | 22 ---------------------- .../src/com/artifex/mupdf/fitz/StrokeState.java | 18 +++++++++--------- 2 files changed, 9 insertions(+), 31 deletions(-) (limited to 'platform/java/src/com') diff --git a/platform/java/src/com/artifex/mupdf/fitz/Device.java b/platform/java/src/com/artifex/mupdf/fitz/Device.java index 0386cac7..d56a41ad 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/Device.java +++ b/platform/java/src/com/artifex/mupdf/fitz/Device.java @@ -61,19 +61,6 @@ abstract public class Device abstract public void beginLayer(String name); abstract public void endLayer(); - /* Flags */ - public static final int FLAG_MASK = 1; - public static final int FLAG_COLOR = 2; - public static final int FLAG_UNCACHEABLE = 4; - public static final int FLAG_FILLCOLOR_UNDEFINED = 8; - public static final int FLAG_STROKECOLOR_UNDEFINED = 16; - public static final int FLAG_STARTCAP_UNDEFINED = 32; - public static final int FLAG_DASHCAP_UNDEFINED = 64; - public static final int FLAG_ENDCAP_UNDEFINED = 128; - public static final int FLAG_LINEJOIN_UNDEFINED = 256; - public static final int FLAG_MITERLIMIT_UNDEFINED = 512; - public static final int FLAG_LINEWIDTH_UNDEFINED = 1024; - /* PDF 1.4 -- standard separable */ public static final int BLEND_NORMAL = 0; public static final int BLEND_MULTIPLY = 1; @@ -93,13 +80,4 @@ abstract public class Device public static final int BLEND_SATURATION = 13; public static final int BLEND_COLOR = 14; public static final int BLEND_LUMINOSITY = 15; - - /* For packing purposes */ - public static final int BLEND_MODEMASK = 15; - public static final int BLEND_ISOLATED = 16; - public static final int BLEND_KNOCKOUT = 32; - - /* Device hints */ - public static final int IGNORE_IMAGE = 1; - public static final int IGNORE_SHADE = 2; } diff --git a/platform/java/src/com/artifex/mupdf/fitz/StrokeState.java b/platform/java/src/com/artifex/mupdf/fitz/StrokeState.java index 815729c9..c8351808 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/StrokeState.java +++ b/platform/java/src/com/artifex/mupdf/fitz/StrokeState.java @@ -6,15 +6,15 @@ public class StrokeState Context.init(); } - public static final int LINECAP_BUTT = 0; - public static final int LINECAP_ROUND = 1; - public static final int LINECAP_SQUARE = 2; - public static final int LINECAP_TRIANGLE = 3; - - public static final int LINEJOIN_MITER = 0; - public static final int LINEJOIN_ROUND = 1; - public static final int LINEJOIN_BEVEL = 2; - public static final int LINEJOIN_MITER_XPS = 3; + public static final int LINE_CAP_BUTT = 0; + public static final int LINE_CAP_ROUND = 1; + public static final int LINE_CAP_SQUARE = 2; + public static final int LINE_CAP_TRIANGLE = 3; + + public static final int LINE_JOIN_MITER = 0; + public static final int LINE_JOIN_ROUND = 1; + public static final int LINE_JOIN_BEVEL = 2; + public static final int LINE_JOIN_MITER_XPS = 3; private long pointer; -- cgit v1.2.3