Is there a script that only removes two or more points occupying the same coordinates

With really complex outlines, the remove overlap command refuses to function, so my question is whether there exists a script capable of only removing these duplicate points.

Two following nodes? Then Paths > Tidy up Paths should take care of that.