Mercurial > hg > truffle
diff src/share/vm/oops/klass.hpp @ 6983:070d523b96a7
8001471: Klass::cast() does nothing
Summary: Remove function Klass::cast() and calls to it.
Reviewed-by: dholmes, coleenp
author | hseigel |
---|---|
date | Mon, 12 Nov 2012 16:15:05 -0500 |
parents | da91efe96a93 |
children | 2cb439954abf 90273fc0a981 |
line wrap: on
line diff
--- a/src/share/vm/oops/klass.hpp Fri Nov 09 22:22:53 2012 -0800 +++ b/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);