RestComm / Restcomm-Connect

The Open Source Cloud Communications Platform
http://www.restcomm.com/
GNU Affero General Public License v3.0
241 stars 215 forks source link

Remove overloaded State constructors as they add more complexity and confusion #783

Open gvagenas opened 8 years ago

gvagenas commented 8 years ago

The overloaded constructors of State :

doesn't make things clear about when we want an ActionOnEnter or ActionOnExit or ActionOnState.

We should remove the overloaded constructors and keep just the first one.

steve07728 commented 8 years ago

I converted all the code using the overloaded constructors to use the base constructor and removed the overloaded constructors.

gvagenas commented 8 years ago

@steve07728 Thanks for the update. Will check your work as soon as possible