Deleted unused objective function code as it is unused.