function finishRemoving() {
            self._codeMirror.removeLineWidget(inlineWidget.info);
            self._removeInlineWidgetInternal(inlineWidget);
            deferred.resolve();
        }
Removes the given inline widget.
@param {number} inlineWidget The widget to remove.
@return {$.Promise} A promise that is resolved when the inline widget is fully closed and removed from the DOM.