Revolute joint w/o point-to-point constraint

Hello. In my game it would be nice to use revolute joint motor, but the problem is that connected bodies need to move freely. So im thinking about modifying revolute joint. I've taken a look into code and made some changes (actually just commented few lines where linear velocity is applied and sweep transform made under point-to-point constraint). It works now, bodies are moving freely and rotation motor works. However im not sure if its working right and all effects of point-to-point removed.
So i want to ask maybe someone already implemented such joint or knows how to actually modify revolute to completly remove point-to-point constraint?

Original thread: https://box2d.org/forum/viewtopic.php?t=3960