The irony is that the best way to find out if mathematics is actually useless to either programming or real world problem solving is to know a lot of it.Just staring at it from a safe window and then making catholic pronouncements does not help.
As someone with both a Bachelors degree in Computer Science and a Bachelors degree in Mathematics I'd agree.
My CS degree was quite theoretical (completed in 1999) so it wasn't just being taught the language of the day (we did x86 assembly, Modula-2, Prolog, Lisp, C++ and Occam).
The Mathematics degree has definitely been useful for programming; specifically set theory, matrix manipulation and linear algebra, number theory, and graphs/networks/design, but a lot of it is stuff I'm unlikely to use for usual programming areas. Number theory (and implications within assymetric encryption) is where I'll probably look to continue learning (as part of a Masters degree) if I find the time.