Remove redundant code behind ifdefs: the code which is removed is already behind #ifdef HEPMC3
#ifdef HEPMC3
@jchapman