This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -3038,20 +3038,6 @@ void Class::AddFunction(const Function& function) const {
30383038 }
30393039}
30403040
3041- void Class::RemoveFunction(const Function& function) const {
3042- ASSERT(Thread::Current()->IsMutatorThread());
3043- const Array& arr = Array::Handle(functions());
3044- StorePointer(&raw_ptr()->functions_, Object::empty_array().raw());
3045- StorePointer(&raw_ptr()->functions_hash_table_, Array::null());
3046- Function& entry = Function::Handle();
3047- for (intptr_t i = 0; i < arr.Length(); i++) {
3048- entry ^= arr.At(i);
3049- if (function.raw() != entry.raw()) {
3050- AddFunction(entry);
3051- }
3052- }
3053- }
3054-
30553041FunctionPtr Class::FunctionFromIndex(intptr_t idx) const {
30563042 const Array& funcs = Array::Handle(functions());
30573043 if ((idx < 0) || (idx >= funcs.Length())) {
Original file line number Diff line number Diff line change @@ -1295,7 +1295,6 @@ class Class : public Object {
12951295 ArrayPtr functions () const { return raw_ptr ()->functions_ ; }
12961296 void SetFunctions (const Array& value) const ;
12971297 void AddFunction (const Function& function) const ;
1298- void RemoveFunction (const Function& function) const ;
12991298 FunctionPtr FunctionFromIndex (intptr_t idx) const ;
13001299 intptr_t FindImplicitClosureFunctionIndex (const Function& needle) const ;
13011300 FunctionPtr ImplicitClosureFunctionFromIndex (intptr_t idx) const ;
Original file line number Diff line number Diff line change @@ -27,5 +27,5 @@ CHANNEL dev
2727MAJOR 2
2828MINOR 11
2929PATCH 0
30- PRERELEASE 216
30+ PRERELEASE 217
3131PRERELEASE_PATCH 0
You can’t perform that action at this time.
0 commit comments