Revert "Add native binding for isDexOptNeededInternal."

This reverts commit 27ef2d3a406fa913a99f2ce8a8ea7e97d9deacfa.