Removed some unused code in the completion engine.