build_packages: drop --withevents

This gets passed to emerge which then ignores it.  We've dropped the
flag from chromite so no one should be using this anymore which means
we can drop it from here.

BUG=chromium:970829
TEST=CQ passes

Change-Id: Ib21e80ffb5000cc068e866f4558a95bc6518243e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2080678
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/build_packages b/build_packages
index 149b3a3..da9f018 100755
--- a/build_packages
+++ b/build_packages
@@ -26,8 +26,6 @@
   "Build autotest client code."
 DEFINE_boolean withdebugsymbols "${FLAGS_FALSE}" \
   "Install the debug symbols for all packages"
-DEFINE_boolean withevents "${FLAGS_FALSE}" \
-  "Generate events during parallel_emerge step"
 DEFINE_string eventfile "${DEFAULT_EVENT_FILE}" \
   "Define the file that event logs will be written."
 DEFINE_boolean withrevdeps "${FLAGS_TRUE}" \
@@ -228,16 +226,6 @@
   export USE="${USE} -cros-debug"
 fi
 
-# TODO Handle case where passed default value, but events not enabled
-if [[ "${FLAGS_eventfile}" != "${DEFAULT_EVENT_FILE}" ]]; then
-  FLAGS_withevents="${FLAGS_TRUE}"
-fi
-
-if [[ "${FLAGS_withevents}" -eq "${FLAGS_TRUE}" ]]; then
-  mkdir -p "$(dirname $FLAGS_eventfile)"
-  EMERGE_FLAGS+=( "--eventlogfile=${FLAGS_eventfile}" )
-fi
-
 # Figure out which packages we should be building.
 PACKAGES=( "$@" )
 # Force rebuild chromeos-config because it is extremely cheap, and we do not