--- a/hotspot/src/share/vm/oops/klass.hpp Fri Nov 09 22:22:53 2012 -0800
+++ b/hotspot/src/share/vm/oops/klass.hpp Mon Nov 12 16:15:05 2012 -0500
@@ -422,12 +422,6 @@
// if not, throw either an Error or an Exception.
virtual void check_valid_for_instantiation(bool throwError, TRAPS);
- // Casting
- static Klass* cast(Klass* k) {
- assert(k->is_klass(), "cast to Klass");
- return k;
- }
-
// array copying
virtual void copy_array(arrayOop s, int src_pos, arrayOop d, int dst_pos, int length, TRAPS);