trigger: remove unneeded code to make C compiler happy