dev-rust/trace_events: remove

The underlying source is being removed. Nobody is using this, including
crosvm, which erroneously had this listed in DEPEND.

TEST=None
BUG=None

Change-Id: I6ed539aaa012698da59622ff365b9380e9340390
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/chromiumos-overlay/+/2988461
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
diff --git a/chromeos-base/crosvm/crosvm-9999.ebuild b/chromeos-base/crosvm/crosvm-9999.ebuild
index eefc9f7..0854d76 100644
--- a/chromeos-base/crosvm/crosvm-9999.ebuild
+++ b/chromeos-base/crosvm/crosvm-9999.ebuild
@@ -84,7 +84,6 @@
 	>=dev-rust/smallvec-1.6.1:= <dev-rust/smallvec-2
 	=dev-rust/syn-1*:=
 	>=dev-rust/thiserror-1.0.20:= <dev-rust/thiserror-2.0
-	dev-rust/trace_events:=
 	dev-rust/remain:=
 	dev-rust/vmm_vhost:=
 	tpm2? (
diff --git a/dev-rust/trace_events/files/chromeos-version.sh b/dev-rust/trace_events/files/chromeos-version.sh
deleted file mode 100755
index 025a6cc..0000000
--- a/dev-rust/trace_events/files/chromeos-version.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-#
-# Copyright 2019 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Assumes the first 'version =' line in the Cargo.toml is the version for the
-# crate.
-awk '/^version = / { print $3 }' "$1/trace_events/trace_events/Cargo.toml" | head -n1 | tr -d '"'
diff --git a/dev-rust/trace_events/trace_events-0.1.0-r9.ebuild b/dev-rust/trace_events/trace_events-0.1.0-r9.ebuild
deleted file mode 100644
index 1db8ef6..0000000
--- a/dev-rust/trace_events/trace_events-0.1.0-r9.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 2019 The Chromium OS Authors. All rights reserved.
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CROS_WORKON_COMMIT="52f7d224416acd115a8d76bf0258d19bd5b0a1cd"
-CROS_WORKON_TREE="e509681943a4a652c4575e6da2260621c04c8500"
-CROS_WORKON_LOCALNAME="../platform2"
-CROS_WORKON_PROJECT="chromiumos/platform2"
-CROS_WORKON_OUTOFTREE_BUILD=0
-CROS_WORKON_SUBTREE="trace_events"
-
-inherit cros-workon cros-rust
-
-DESCRIPTION="Infrastructure for clients to emit trace events."
-HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/trace_events/"
-
-LICENSE="BSD-Google"
-KEYWORDS="*"
-IUSE="test"
-
-DEPEND="=dev-rust/libc-0.2*:=
-	=dev-rust/criterion-0.2*:=
-	>=dev-rust/serde_json-1:=
-"
-# (crbug.com/1182669): build-time only deps need to be in RDEPEND so they are pulled in when
-# installing binpkgs since the full source tree is required to use the crate.
-RDEPEND="${DEPEND}
-	!!<=dev-rust/trace_events-0.1.0-r2
-"
-
-pkg_setup() {
-	cros-rust_pkg_setup trace_events
-	cros-rust_pkg_setup json_tracer
-	cros-rust_pkg_setup trace_events_macros
-}
-
-src_compile() {
-	ecargo_build
-
-	use test && ecargo_test --workspace --no-run
-}
-
-src_test() {
-	cros-rust_src_test --workspace
-}
-
-src_install() {
-	pushd trace_events > /dev/null || die
-	cros-rust_publish trace_events "$(cros-rust_get_crate_version .)"
-	popd > /dev/null || die
-	pushd json_tracer > /dev/null || die
-	cros-rust_publish json_tracer "$(cros-rust_get_crate_version .)"
-	popd > /dev/null || die
-	pushd trace_events_macros > /dev/null || die
-	cros-rust_publish trace_events_macros "$(cros-rust_get_crate_version .)"
-}
-
-pkg_postinst() {
-	cros-rust_pkg_postinst trace_events
-	cros-rust_pkg_postinst json_tracer
-	cros-rust_pkg_postinst trace_events_macros
-}
-
-pkg_prerm() {
-	cros-rust_pkg_prerm trace_events
-	cros-rust_pkg_prerm json_tracer
-	cros-rust_pkg_prerm trace_events_macros
-}
diff --git a/dev-rust/trace_events/trace_events-9999.ebuild b/dev-rust/trace_events/trace_events-9999.ebuild
deleted file mode 100644
index 26b7f8b..0000000
--- a/dev-rust/trace_events/trace_events-9999.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 2019 The Chromium OS Authors. All rights reserved.
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CROS_WORKON_LOCALNAME="../platform2"
-CROS_WORKON_PROJECT="chromiumos/platform2"
-CROS_WORKON_OUTOFTREE_BUILD=0
-CROS_WORKON_SUBTREE="trace_events"
-
-inherit cros-workon cros-rust
-
-DESCRIPTION="Infrastructure for clients to emit trace events."
-HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/trace_events/"
-
-LICENSE="BSD-Google"
-KEYWORDS="~*"
-IUSE="test"
-
-DEPEND="=dev-rust/libc-0.2*:=
-	=dev-rust/criterion-0.2*:=
-	>=dev-rust/serde_json-1:=
-"
-# (crbug.com/1182669): build-time only deps need to be in RDEPEND so they are pulled in when
-# installing binpkgs since the full source tree is required to use the crate.
-RDEPEND="${DEPEND}
-	!!<=dev-rust/trace_events-0.1.0-r2
-"
-
-pkg_setup() {
-	cros-rust_pkg_setup trace_events
-	cros-rust_pkg_setup json_tracer
-	cros-rust_pkg_setup trace_events_macros
-}
-
-src_compile() {
-	ecargo_build
-
-	use test && ecargo_test --workspace --no-run
-}
-
-src_test() {
-	cros-rust_src_test --workspace
-}
-
-src_install() {
-	pushd trace_events > /dev/null || die
-	cros-rust_publish trace_events "$(cros-rust_get_crate_version .)"
-	popd > /dev/null || die
-	pushd json_tracer > /dev/null || die
-	cros-rust_publish json_tracer "$(cros-rust_get_crate_version .)"
-	popd > /dev/null || die
-	pushd trace_events_macros > /dev/null || die
-	cros-rust_publish trace_events_macros "$(cros-rust_get_crate_version .)"
-}
-
-pkg_postinst() {
-	cros-rust_pkg_postinst trace_events
-	cros-rust_pkg_postinst json_tracer
-	cros-rust_pkg_postinst trace_events_macros
-}
-
-pkg_prerm() {
-	cros-rust_pkg_prerm trace_events
-	cros-rust_pkg_prerm json_tracer
-	cros-rust_pkg_prerm trace_events_macros
-}