Remove dead code from lwdim example

While I was trying out some of the examples I noticed that lwdim had a `printMsg` function which isn't used so this cleans it up for clarity.