GtkComponentPeer.java (prepareImage): Remove null check.
2003-11-12 Tom Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Remove null check. * gnu/java/awt/peer/gtk/GtkToolkit.java (prepareImage): Likewise. * java/awt/Component.java (prepareImage): Likewise. From-SVN: r73513
This commit is contained in:
committed by
Thomas Fitzsimmons
parent
49add53f4e
commit
2860518a07
@@ -230,9 +230,6 @@ public class GtkComponentPeer extends GtkGenericPeer
|
||||
public boolean prepareImage (Image image, int width, int height,
|
||||
ImageObserver observer)
|
||||
{
|
||||
if (image == null)
|
||||
throw new NullPointerException ();
|
||||
|
||||
GtkImage i = (GtkImage) image;
|
||||
|
||||
if (i.isLoaded ()) return true;
|
||||
|
||||
@@ -169,9 +169,6 @@ public class GtkToolkit extends Toolkit
|
||||
public boolean prepareImage (Image image, int width, int height,
|
||||
ImageObserver observer)
|
||||
{
|
||||
if (image == null)
|
||||
throw new NullPointerException ();
|
||||
|
||||
GtkImage i = (GtkImage) image;
|
||||
|
||||
if (i.isLoaded ()) return true;
|
||||
|
||||
Reference in New Issue
Block a user