Earlier GOEventHandlerList.cpp contained a lot of copy-pasted code, so adding a new method requires to copy-paste more.
This PR reorganises this class so all the reusable code is in the methods of the new inner class UPVector. Now most of methods only forward to a corresponding method of UPVector.
It is just refactoring. No GO behavior should be changed.
This is the first PR related to #1816
Earlier
GOEventHandlerList.cpp
contained a lot of copy-pasted code, so adding a new method requires to copy-paste more.This PR reorganises this class so all the reusable code is in the methods of the new inner class UPVector. Now most of methods only forward to a corresponding method of UPVector.
It is just refactoring. No GO behavior should be changed.