The case against a prosecutor allegedly caught with a prostitute has been dropped because "it was not in the public interest" to proceed to trial.
Glasgow Sheriff Court heard the case was not in the public interest
Stuart MacFarlane, 37, a principal procurator fiscal depute in Glasgow, was arrested after a police function.
He faced indecency and resisting arrest charges and resigned from the Crown Office earlier this month.
Glasgow Sheriff Court heard the case would not proceed after "changes to his situation and medical reports".
It was alleged that Mr MacFarlane and Joanna Crane, 27, had been caught by police while she was performing a sex act on him.
The offences were alleged to have taken place in Bothwell Street on 29 October.
David Spiers, procurator fiscal at Hamilton, told Glasgow Sheriff Court: "Mr MacFarlane's lawyer has advised of changes in his situation.
"Considering this and specialist medical reports it would not be in the public interest to proceed further with this case."
The charge against Ms Crane was also dropped.
She had pleaded not guilty to committing an offence of public indecency by engaging in a sexual act in a public place.
Mr McFarlane, who lives near Eaglesham, had not tendered a plea.