361. – Then when he says, On the one hand, a former commandment is set aside, he lays down two consequents: first, in regard to the voiding of the Old Testament; secondly, the institution of the New.
362. – The first consequent is that the Old Testament came about by the law of carnal commandments, and the other is then introduced. The first, therefore, is changed: and this is what he says, namely, there is a setting aside of the former commandment. But nothing is set aside except what is evil: 'That he may know how to refuse the evil' (Is. 7:15). But the commandment is not evil: 'The law ind...eed is holy, and the commandment holy and just and good' (Rom. 7:12). I answer that it was not evil in itself, but inasmuch as it was unsuited to the time. For the things of the Old Testament are not to be kept in the New Testament: 'Sacrifice and oblation you did not desire: then said I: behold, I come' (Ps. 39:8). Therefore, it is said to be set aside because of its weakness and uselessness. For that is said to be weak which cannot produce its effect; but the proper effect of the Law and of the priesthood is to justify. This the Law was unable to do: 'For what the law could not do in that it was weak through the flesh; God sending his own Son in the likeness of sinful flesh and of sin has condemned sin in the flesh' (Rom. 8:3); 'How turn you again to the weak and needy elements, which you desire to serve again?' (Gal. 4:9). Likewise, it is called useless, inasmuch as it prepared one for the faith: 'All these died according to the flesh, not having received the promises' (Heb. 11:13). But he shows why it is weak and useless when he says, it made nothing perfect in regard to justice or eternal life. Hence, it was imperfect, but it was made perfect by Christ.
Source: Commentary on Hebrews