remove unused cocoa functions