cocoa: remove dead code

This became dead code in commit 3f594c2e.