A state judge has dismissed a lawsuit by former students of a elite Brooklyn prep school against the school’s outside counsel for allegedly trying to “deceive” a federal court in a now-settled action challenging the school for an alleged covering up sexual abuse by a coach.

Most of the former students and summer camp participants sued O’Melveny & Myers and Jeffrey Kohn, managing partner of its New York office, asserting the attorneys had to be held accountable for “their grievous and oft-repeated falsehoods” in the high-profile Eastern District case against Poly Prep.