he knew what he had to do , and he took a certain pleasure in making a bit of a performance of it , ostentatiously examining the dead cocker spaniel , the artificial leg , and the damp and moldy portable telephone , and shaking his head dolorously at each of them .