i would change the description of “spur”.
at the moment it reads like if it were only to remove diagonally connected pixels.
i think a more proper description of its current behavior could be:
Removes pixels that have exactly one 8-connected neighbor. This is basically removes the endpoints of lines.