An inner-city mayor has walked from court acquitted of unlawful assault after a protester accused him of punching her in the face.