From 00763a3beef62f4d6949f33255131042db689b27 Mon Sep 17 00:00:00 2001 From: Ruchir Rastogi Date: Fri, 14 Feb 2020 13:07:44 -0800 Subject: [PATCH] Delete stats_event_list refs from statsd src This breaks LogEvent::writeBytes, but that function is only called from test code (and those tests are about to be broken soon anyways). Test: m statsd Test: m statsd_test Bug: 145573568 Change-Id: Ic2d2e7c80d25fa93269e3432dbe58dffbd80dfd4 --- cmds/statsd/src/logd/LogEvent.cpp | 4 ++-- cmds/statsd/src/logd/LogEvent.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmds/statsd/src/logd/LogEvent.cpp b/cmds/statsd/src/logd/LogEvent.cpp index 103eb0c78bd58..1ef1ab25098ca 100644 --- a/cmds/statsd/src/logd/LogEvent.cpp +++ b/cmds/statsd/src/logd/LogEvent.cpp @@ -290,9 +290,9 @@ bool LogEvent::write(float value) { } bool LogEvent::writeBytes(const string& value) { - if (mContext) { + /* if (mContext) { return android_log_write_char_array(mContext, value.c_str(), value.length()) >= 0; - } + }*/ return false; } diff --git a/cmds/statsd/src/logd/LogEvent.h b/cmds/statsd/src/logd/LogEvent.h index a67bef451be7e..ea449b0d615c2 100644 --- a/cmds/statsd/src/logd/LogEvent.h +++ b/cmds/statsd/src/logd/LogEvent.h @@ -20,7 +20,6 @@ #include #include -#include #include #include