Removed unused promise.
Removed obsolete promise.
Removed unused memory allocation for promise.
Removed unclear indent.