The judge said he was surprised the case had come before the court at all.
Jurors at a trial in Tullamore saw CCTV footage showing a man being kicked while he lay unconscious on a street corner in Birr.
The man, James Power, a 41-year-old from Ballyharty, Kilmore, Co Wexford, was on trial for assaulting Michael Gallagher at Green Street, Birr on April 13, 2018.
He denied the charge and also pleaded not guilty to a charge of violent disorder when he appeared at Tullamore Circuit Court.
Michael Gallagher had received a suspended two-year sentence in November for assaulting James Power, causing him harm.
Mr Gallagher, aged 26 and from 13 Fairview, Birr, who was captured on CCTV footage stripped to the waist after coming out of the Chestnut Pub in the town with Mr Power, was also ordered to complete 240 hours' community service in lieu of a four-year sentence for violent disorder and told to remain drug-free.
Gda Laurence O'Gorman told the trial he went to the scene and saw Michael Gallagher, a man he knew, standing over James Power, shouting down at him and kicking him in the head twice.
Mr Power, who sustained a laceration on the back of his head and other abrasions and bruises, did not go to hospital after being seen by ambulance paramedics.
In CCTV footage played in court, Mr Power and Mr Gallagher were seen in a pub, drinking, talking to each other and hugging.
A young woman could be seen approaching the two men at the bar and apparently asking them to leave.
Mr Power left the pub first, followed by Mr Gallagher, and they were again recorded by CCTV on the street.
They could be seen talking to each other on the footpath and after Mr Power stepped away and returned, Mr Gallagher took off his coat and both men were out on the street arguing.
As the footage continued, Mr Gallagher could be seen without his coat and tee-shirt after grabbing Mr Power's hand.
In an image which was not completely clear on the footage, Mr Power appeared to hit Mr Gallagher with a punch after throwing his jacket back to him.
A third man came along and tried to separate the pair and that man could also be seen kicking Mr Power.
The recording also showed the first two men attempting to strike each other and after they moved down towards the street corner, Mr Power was pushed to the ground against a wall and kicked by Mr Gallagher.
The jury saw Mr Power lying on the footpath and falling down on his back as he attempted to get up and crawl away.
Michael Gallagher ran towards him while he was still on the ground and kicked him before the gardai arrived.
Garda O'Gorman gave evidence that following his arrest in Wexford, Mr Power said his actions on the night looked like self defence when he was shown the footage but he could not remember what happened, either because of drink or because he had been knocked out.
When he was asked if the incident was related to a relationship between Mr Gallagher and a woman, he said he did not know.
He said he had only been staying in Birr the odd night to see a girl and he had not known the other men at all.
The trial ended abruptly when Judge Keenan Johnson said he was really surprised the case had come before the court at all.
Speaking in the absence of the jury, he said it was “ridiculous” because Mr Power was the victim in the incident and he told Mr Geraghty that a charge of public drunkeness would have been appropriate.
He formally acceded to an application from Mr Fennelly that the accused had no case to answer.
Addressing the jury, he said he was taking the case from them because he had not the slightest doubt that the actions of the accused were primarily all in self defence and Mr Gallagher was the aggressor.
Instead of being the culprit, Mr Power was the victim of an extremely serious assault, he said.
Laois Hotel To Hold Fuel Crisis Meeting This Weekend
Midlands MEP Welcomes European Ban On AI 'Nudification’ Apps
Jadotville Monument Unveiled In Westmeath
LOETB Highlight Importance Of Prisoner Education Programmes
Housing Minister Opens 77 New Social Homes In Offaly
Justice Minister Criticises TDs Speaking Out Against Gardai
Farmers Urge Action From Government Over Dairy Price War
National Lottery Calls On Midlands' Winner To Collect Million Euro Prize
Midlands Hospital Reopening Surgical Ward
Planning Granted For Westmeath Hotel Expansion
Westmeath Town Centre Plan Set For May Day Launch
Midlands Weapons Offences Up 44%
Laois TD Questions 2030 Housing Target
Midlands MEP Challenges EU As Housing Funding Falls Short
Penalty Shootout Heartache Breaks Irish Hearts In Prague
Jadotville Monument Being Unveiled In Westmeath
Childcare Consultations To Take Place Next Month In Midlands
11% Of Tests Cancelled Over New Insurance Rule By RSA
Longford-Westmeath TD Blasts Opposition Over Being Called 'Lackey'
More Supports Needed For Meals On Wheels - Irish Rural Link