Delete stats_event_list from libstatssocket

This change is done in internal master because the flag has not been
switched in AOSP, so stats_event_list is still being used there.

Test: m -j
Bug: 145573568
Change-Id: Ica525d0fd731b8d3e9d273ce2220a3d3179d93d9
diff --git a/libstats/socket/Android.bp b/libstats/socket/Android.bp
index 893ef28..f8b38ad 100644
--- a/libstats/socket/Android.bp
+++ b/libstats/socket/Android.bp
@@ -22,9 +22,6 @@
     srcs: [
         "stats_buffer_writer.c",
         "stats_event.c",
-        // TODO(b/145573568): Remove stats_event_list once stats_event
-        // migration is complete.
-        "stats_event_list.c",
         "stats_socket.c",
         "statsd_writer.c",
     ],
@@ -32,14 +29,10 @@
     cflags: [
         "-Wall",
         "-Werror",
-        "-DLIBLOG_LOG_TAG=1006",
-        "-DWRITE_TO_STATSD=1",
-        "-DWRITE_TO_LOGD=0",
     ],
     export_include_dirs: ["include"],
-    shared_libs: [
-        "libcutils",
-        "liblog",
+    static_libs: [
+        "libcutils", // does not expose a stable C API
     ],
 
     // enumerate stable entry points for APEX use
@@ -78,7 +71,6 @@
     ],
     shared_libs: [
         "libcutils",
-        "liblog",
         "libgtest_prod",
     ],
 }
@@ -96,7 +88,6 @@
     ],
     shared_libs: [
         "libcutils",
-        "liblog",
         "libutils",
     ],
     test_suites: ["device-tests"],