A mayoral analysis of hundreds of millions of dollars in New York City contracts with developer and presidential candidate Donald Trump concluded that the city could not legally terminate the relationship over his comments about Mexicans that officials deemed offensive.

"We reviewed the city's existing contracts with Donald Trump and found no legal way to cancel these contracts," Monica Klein, a spokeswoman for Mayor Bill de Blasio, said Thursday. "In the future, however, the mayor said he would not go out of his way to do any business with Mr. Trump."

De Blasio had ordered the review after the GOP presidential hopeful made a speech suggesting murderers and rapists were rife among Mexicans who enter the United States.

CartoonsCartoons: GOP debatesMore coverageOpinion and analysis about the 2016 presidential campaign

The city-related interests of Trump, now the front-runner in polls of the crowded Republican field, include a $260 million Bronx golf course, which opened in April, called the Trump Golf Links at Ferry Point. The parks department's arrangement with Trump to complete and operate the course on the site of a former city dump was made during former Mayor Michael Bloomberg's administration.

The Trump Organization also manages a carousel in Central Park and two skating rinks, a legacy of instances in which Trump stepped in to finish city projects that had previously foundered.

The Trump remarks that sparked the review were: "When Mexico sends its people, they're not sending their best. . . . They're sending people that have lots of problems. . . . They're bringing drugs. They're bringing crime. They're rapists. And some, I assume, are good people."

advertisement | advertise on newsday

De Blasio's office said at the time that the review was done by administration lawyers.

Trump's organization did not immediately return a message seeking comment.

But in July, Trump executive vice president Ronald C. Lieberman called the company's relationship with the city "an incredible, incredible success story" and warned: "We have binding contracts."

Get the Newsday Now newsletter!

The best of Newsday every day in your inbox.

In a follow-up letter, Trump warned Parks Commissioner Mitchell Silver that severing contracts because of Trump's comments would pose a "clear and unequivocal violation of my First Amendment protection."