Remove the deprecated target rtc_stats.

Change-Id: I24ee744c0e8e024579eb27a31a94bf60a254d5c5
Bug: webrtc:42226139
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/485780
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#48115}
diff --git a/BUILD.gn b/BUILD.gn
index 3cbf3e4..b8d10d9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -569,7 +569,6 @@
       "pc:peer_connection_factory",
       "pc:rtc_pc",
       "pc:webrtc_sdp",
-      "stats",
       "video",
     ]
 
diff --git a/pc/BUILD.gn b/pc/BUILD.gn
index c5eacce..32d97ed 100644
--- a/pc/BUILD.gn
+++ b/pc/BUILD.gn
@@ -1097,7 +1097,6 @@
     "../api:rtc_stats_api",
     "../api:scoped_refptr",
     "../rtc_base:checks",
-    "../stats:rtc_stats",
   ]
 }
 
diff --git a/stats/BUILD.gn b/stats/BUILD.gn
index 539cdc1..d0d80f1 100644
--- a/stats/BUILD.gn
+++ b/stats/BUILD.gn
@@ -8,18 +8,6 @@
 
 import("../webrtc.gni")
 
-group("stats") {
-  deps = [ ":rtc_stats" ]
-}
-
-rtc_library("rtc_stats") {
-  visibility = [ "*" ]
-  cflags = []
-  sources = []
-
-  deps = [ "../api:rtc_stats_api" ]
-}
-
 rtc_library("rtc_stats_test_utils") {
   visibility = [ "*" ]
   cflags = []
@@ -29,7 +17,6 @@
   ]
 
   deps = [
-    ":rtc_stats",
     "../api:rtc_stats_api",
     "../api/units:timestamp",
     "../rtc_base:checks",
@@ -46,7 +33,6 @@
     ]
 
     deps = [
-      ":rtc_stats",
       ":rtc_stats_test_utils",
       "../api:rtc_stats_api",
       "../api:scoped_refptr",