diff --git a/src/hotspot/share/ci/ciMethodType.cpp b/src/hotspot/share/ci/ciMethodType.cpp index 221982f91e0..f9cd22001a3 100644 --- a/src/hotspot/share/ci/ciMethodType.cpp +++ b/src/hotspot/share/ci/ciMethodType.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2022, 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 @@ -52,10 +52,3 @@ int ciMethodType::ptype_count() const { int ciMethodType::ptype_slot_count() const { GUARDED_VM_ENTRY(return java_lang_invoke_MethodType::ptype_slot_count(get_oop());) } - -ciType* ciMethodType::ptype_at(int index) const { - GUARDED_VM_ENTRY( - oop ptype = java_lang_invoke_MethodType::ptype(get_oop(), index); - return class_to_citype(ptype); - ) -} diff --git a/src/hotspot/share/ci/ciMethodType.hpp b/src/hotspot/share/ci/ciMethodType.hpp index 1cdf77893af..b626fa9c447 100644 --- a/src/hotspot/share/ci/ciMethodType.hpp +++ b/src/hotspot/share/ci/ciMethodType.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2022, 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 @@ -43,9 +43,7 @@ public: ciType* rtype() const; int ptype_count() const; - int ptype_slot_count() const ; - - ciType* ptype_at(int index) const; + int ptype_slot_count() const; }; #endif // SHARE_CI_CIMETHODTYPE_HPP