This puzzled me and I looked it up, and yes, sinks without overflow meet code [1] (but not tubs). So your situation was apparently legal.
But the sibling comment to this one, where a sink had an overflow, but it was not connected, did not meet code [also 1].
Go figure. There must be some reasoning there, but I'm confused as to what it is.
https://forms.iapmo.org/email_marketing/codespotlight/2018/m...