Remove legacy promises from api.js
Remove LegacyPromise from src/core/obj.js
Merge pull request #4709 from pramodhkp/refactoring

Remove legacy promises from api.js