A man is jailed for what a judge describes as “completely unjustified and gratuitous violence” against a two-year-old girl that would have left her in “excruciating pain”.