Yes, it isn't done away with, but no one is unable to follow them also because it say that there's no one is without sin. The laws are there for us to show how much we need to be careful on judging others. But we should be more understanding, because we can't fulfill them all as well. David has judged himself by thinking that he was sinless, and anyone that thinks that they are sinless will be judge by there own words. So basically no one shouldn't judge.
2Samuel 12:5 David burned with anger against the man and said to Nathan, “As surely as the Lord lives, the man who did this must die! 6 He must pay for that lamb four times over, because he did such a thing and had no pity.”7 Then Nathan said to David, “You are the man! This is what the Lord, the God of Israel, says: ‘I anointed you king over Israel, and I delivered you from the hand of Saul. 8 I gave your master’s house to you, and your master’s wives into your arms. I gave you all Israel and Judah. And if all this had been too little, I would have given you even more. 9 Why did you despise the word of the Lord by doing what is evil in his eyes? You struck down Uriah the Hittite with the sword and took his wife to be your own. You killed him with the sword of the Ammonites. 10 Now, therefore, the sword will never depart from your house, because you despised me and took the wife of Uriah the Hittite to be your own.’
And David pleaded for mercy and didn't received it.
2 Samuel 12:13 Then David said to Nathan, “I have sinned against the Lord.”
Nathan replied, “The Lord has taken away your sin. You are not going to die. 14 But because by doing this you have shown utter contempt for the Lord, the son born to you will die.”
15 After Nathan had gone home, the Lord struck the child that Uriah’s wife had borne to David, and he became ill. 16 David pleaded with God for the child. He fasted and spent the nights lying in sackcloth on the ground. 17 The elders of his household stood beside him to get him up from the ground, but he refused, and he would not eat any food with them.
18 On the seventh day the child died. David’s attendants were afraid to tell him that the child was dead, for they thought, “While the child was still living, he wouldn’t listen to us when we spoke to him. How can we now tell him the child is dead? He may do something desperate.”
19 David noticed that his attendants were whispering among themselves, and he realized the child was dead. “Is the child dead?” he asked.
“Yes,” they replied, “he is dead.”
20 Then David got up from the ground. After he had washed, put on lotions and changed his clothes,he went into the house of the Lord and worshiped. Then he went to his own house, and at his request they served him food, and he ate.
21 His attendants asked him, “Why are you acting this way? While the child was alive, you fasted and wept, but now that the child is dead, you get up and eat!”
22 He answered, “While the child was still alive, I fasted and wept. I thought, ‘Who knows? The Lordmay be gracious to me and let the child live.’ 23 But now that he is dead, why should I go on fasting? Can I bring him back again? I will go to him, but he will not return to me.”
Matthew 13:17
For truly I tell you, many prophets and righteous people longed to see what you see but did not see it, and to hear what you hear but did not hear it.
Luke 7:48Then Jesus said to her, “Your sins are forgiven.”