[libbluray-devel] Drop unneeded me/se versions of BDImage

hpi1 git at videolan.org
Fri Aug 31 13:21:07 CEST 2018


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 31 14:17:12 2018 +0300| [d0dd2ac3c4db15b7bdb15f14131bec34cf799f86] | committer: hpi1

Drop unneeded me/se versions of BDImage

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d0dd2ac3c4db15b7bdb15f14131bec34cf799f86
---

 src/libbluray/bdj/java-j2me/java/awt/BDImage.java  | 28 ----------------------
 src/libbluray/bdj/java-j2se/java/awt/BDImage.java  | 28 ----------------------
 .../java/awt/{BDImageBase.java => BDImage.java}    |  6 ++---
 3 files changed, 3 insertions(+), 59 deletions(-)

diff --git a/src/libbluray/bdj/java-j2me/java/awt/BDImage.java b/src/libbluray/bdj/java-j2me/java/awt/BDImage.java
deleted file mode 100644
index 00a121f3..00000000
--- a/src/libbluray/bdj/java-j2me/java/awt/BDImage.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * This file is part of libbluray
- * Copyright (C) 2012  libbluray
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see
- * <http://www.gnu.org/licenses/>.
- */
-
-package java.awt;
-
-import sun.awt.image.BufferedImagePeer;
-
-public class BDImage extends BDImageBase implements BufferedImagePeer {
-    BDImage(Component component, int width, int height, GraphicsConfiguration gc) {
-        super(component, width, height, gc);
-    }
-}
diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDImage.java b/src/libbluray/bdj/java-j2se/java/awt/BDImage.java
deleted file mode 100644
index 4b79d320..00000000
--- a/src/libbluray/bdj/java-j2se/java/awt/BDImage.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * This file is part of libbluray
- * Copyright (C) 2012  libbluray
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see
- * <http://www.gnu.org/licenses/>.
- */
-
-package java.awt;
-
-import sun.awt.image.BufferedImagePeer;
-
-class BDImage extends BDImageBase implements BufferedImagePeer {
-    BDImage(Component component, int width, int height, GraphicsConfiguration gc) {
-        super(component, width, height, gc);
-    }
-}
diff --git a/src/libbluray/bdj/java/java/awt/BDImageBase.java b/src/libbluray/bdj/java/java/awt/BDImage.java
similarity index 97%
rename from src/libbluray/bdj/java/java/awt/BDImageBase.java
rename to src/libbluray/bdj/java/java/awt/BDImage.java
index 5d52d08d..0c8875d1 100644
--- a/src/libbluray/bdj/java/java/awt/BDImageBase.java
+++ b/src/libbluray/bdj/java/java/awt/BDImage.java
@@ -35,7 +35,7 @@ import java.awt.image.ImageObserver;
 import java.awt.image.ColorModel;
 import java.awt.image.BufferedImage;
 
-class BDImageBase extends Image {
+class BDImage extends Image {
     private static Constructor bufferedImageConstructor;
 
     private Component component;
@@ -78,7 +78,7 @@ class BDImageBase extends Image {
         return null;
     }
 
-    BDImageBase(Component component, int width, int height, GraphicsConfiguration gc) {
+    BDImage(Component component, int width, int height, GraphicsConfiguration gc) {
 
         this.component = component;
         this.width = width;
@@ -96,7 +96,7 @@ class BDImageBase extends Image {
     }
 
     public Graphics getGraphics() {
-        return new BDGraphics((BDImage)this);
+        return new BDGraphics(this);
     }
 
     public int getWidth() {



More information about the libbluray-devel mailing list