The man accused of murdering a 59-year-old homeless man in Cork told the jury in his trial today that he put the man in the rubbish chute outside his apartment and said he thought the man would slide down into the rubbish and go on about his business.

David O'Loughlin, 28, with an address at Garden City Apartments, North Main Street Cork, has pleaded not guilty to the murder of Liam Hanley in May of 2013.

On day seven of the trial, Mr O'Loughlin got into the witness box and testified that he did not want Mr Hanley to die in the chute. 

He said he was horrified when he learned that Mr Manley had died in this chute. 

He could not believe, he said, that his actions had led to the death of this man.

He claimed the other man in the flat, David O'Mahony, had said there had been a situation involving Mr Manley and a girl. 

He said he knew now that this was not true and he did not want to blacken the late Mr Manley's name but at the time he punched him twice and told him to leave.

He claimed Mr Manley did not want to go and he put him out and put him into the chute. He said he did not think what was going to happen.

He told his senior counsel Brendan Nix that he had brought Mr Manley back to his apartment because he empathised with him being homeless.   

He said that when the other man made references to paedophilia in relation to Mr Manley "it brought up a lot of s*** for me".

Finishing his cross-examination, prosecution counsel Sean Gillane asked: "The last thing you saw were his feet heading 40 feet down the chute?". 

Mr O'Loughlin replied: "That is correct."

The trial will resume before Mr Justice Paul Carney, at the Central Criminal Court in Cork, in the morning.