Skip to content

Commit 4c3a2b1

Browse files
committed
Delete cvd/metrics.
Most of the code under this directory is a subset of the following: - Copied from host/commands/metrics - Not being compiled - Targeting the acloud metrics proto type rather than the Cuttlefish metrics proto type. The only part being used is an informational notice on logging, which is not the same as the latest notice we were approved to use. Bug: b/445786863
1 parent 8d2e9e5 commit 4c3a2b1

File tree

10 files changed

+0
-588
lines changed

10 files changed

+0
-588
lines changed

base/cvd/cuttlefish/host/commands/cvd/legacy/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ cf_cc_library(
3636
"//cuttlefish/common/libs/utils:shared_fd_flag",
3737
"//cuttlefish/common/libs/utils:unix_sockets",
3838
"//cuttlefish/host/commands/cvd/instances",
39-
"//cuttlefish/host/commands/cvd/metrics",
4039
"//cuttlefish/host/commands/cvd/utils",
4140
"//libbase",
4241
"@protobuf",

base/cvd/cuttlefish/host/commands/cvd/legacy/run_server.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "cuttlefish/common/libs/utils/unix_sockets.h"
3434
#include "cuttlefish/host/commands/cvd/instances/instance_database.h"
3535
#include "cuttlefish/host/commands/cvd/legacy/cvd_server.pb.h"
36-
#include "cuttlefish/host/commands/cvd/metrics/metrics_notice.h"
3736
#include "cuttlefish/host/commands/cvd/utils/common.h"
3837

3938
namespace cuttlefish {
@@ -82,7 +81,6 @@ Result<ParseResult> ParseIfServer(std::vector<std::string>& all_args) {
8281
// In the future, it might be determined by the server if not given.
8382
const auto all_args_size_before = all_args.size();
8483
bool acloud_translator_optout_value = true;
85-
PrintDataCollectionNotice();
8684
flags.emplace_back(GflagsCompatFlag(kInternalAcloudTranslatorOptOut,
8785
acloud_translator_optout_value));
8886
CF_EXPECT(ConsumeFlags({GflagsCompatFlag(kInternalAcloudTranslatorOptOut,

base/cvd/cuttlefish/host/commands/cvd/metrics/BUILD.bazel

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,3 @@ cf_cc_library(
88
name = "is_enabled",
99
hdrs = ["is_enabled.h"],
1010
)
11-
12-
cf_cc_library(
13-
name = "metrics",
14-
srcs = [
15-
# TODO: b/315772518 - cvd metrics are currently disabled
16-
# "cvd_metrics_api.cpp",
17-
"metrics_notice.cpp",
18-
# "utils.cpp",
19-
],
20-
hdrs = [
21-
"metrics_notice.h",
22-
],
23-
)

base/cvd/cuttlefish/host/commands/cvd/metrics/cvd_metrics_api.cpp

Lines changed: 0 additions & 172 deletions
This file was deleted.

base/cvd/cuttlefish/host/commands/cvd/metrics/cvd_metrics_api.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

base/cvd/cuttlefish/host/commands/cvd/metrics/metrics_notice.cpp

Lines changed: 0 additions & 76 deletions
This file was deleted.

base/cvd/cuttlefish/host/commands/cvd/metrics/metrics_notice.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

base/cvd/cuttlefish/host/commands/cvd/metrics/proto/cvd_metrics_protos.h

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)