A......... [ZBX-8568] minor code refactoring itemprototype.delete method
...G...PS. [ZBX-8391] fixed function prototypes