< prev index next >
src/java.desktop/share/classes/java/awt/image/ComponentColorModel.java
Print this page
@@ -2923,26 +2923,6 @@
band[0] = raster.getNumBands() - 1;
return raster.createWritableChild(x, y, raster.getWidth(),
raster.getHeight(), x, y,
band);
}
-
- /**
- * Compares this color model with another for equality.
- *
- * @param obj The object to compare with this color model.
- * @return {@code true} if the color model objects are equal,
- * {@code false} if they are not.
- */
- public boolean equals(Object obj) {
- if (!super.equals(obj)) {
- return false;
- }
-
- if (obj.getClass() != getClass()) {
- return false;
- }
-
- return true;
- }
-
}
< prev index next >