[JENKINS-24787] Removed unnecessary undocumented methods in Gerrit trigger