< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -728,37 +728,20 @@
 
     public int checkImage(Image img, int w, int h, ImageObserver o) {
         return Toolkit.getDefaultToolkit().checkImage(img, w, h, o);
     }
 
-    public Dimension preferredSize() {
-        return getPreferredSize();
-    }
-
-    public Dimension minimumSize() {
-        return getMinimumSize();
-    }
-
     public Insets getInsets() {
         return new Insets(0, 0, 0, 0);
     }
 
     public void beginValidate() {
     }
 
     public void endValidate() {
     }
 
-
-    /**
-     * DEPRECATED:  Replaced by getInsets().
-     */
-
-    public Insets insets() {
-        return getInsets();
-    }
-
     // Returns true if we are inside begin/endLayout and
     // are waiting for native painting
     public boolean isPaintPending() {
         return paintPending && isLayouting;
     }
< prev index next >