summaryrefslogtreecommitdiff
path: root/java/org/gnu/emacs/EmacsPixmap.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/gnu/emacs/EmacsPixmap.java')
-rw-r--r--java/org/gnu/emacs/EmacsPixmap.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/java/org/gnu/emacs/EmacsPixmap.java b/java/org/gnu/emacs/EmacsPixmap.java
index e02699ecba7..fa6e61c15a5 100644
--- a/java/org/gnu/emacs/EmacsPixmap.java
+++ b/java/org/gnu/emacs/EmacsPixmap.java
@@ -51,39 +51,6 @@ public final class EmacsPixmap extends EmacsHandleObject
private long gcClipRectID;
public
- EmacsPixmap (short handle, int colors[], int width,
- int height, int depth)
- {
- super (handle);
-
- if (depth != 1 && depth != 24)
- throw new IllegalArgumentException ("Invalid depth specified"
- + " for pixmap: " + depth);
-
- switch (depth)
- {
- case 1:
- bitmap = Bitmap.createBitmap (colors, width, height,
- Bitmap.Config.ALPHA_8);
- break;
-
- case 24:
- bitmap = Bitmap.createBitmap (colors, width, height,
- Bitmap.Config.ARGB_8888);
- bitmap.setHasAlpha (false);
- break;
- }
-
- this.width = width;
- this.height = height;
- this.depth = depth;
-
- /* The immutable bitmap constructor is only leveraged to create
- small fringe bitmaps. */
- this.needCollect = false;
- }
-
- public
EmacsPixmap (short handle, int width, int height, int depth)
{
super (handle);