From 62b0c42baf898e06ca19660dbc902c58f6a57267 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Mon, 21 Oct 2013 19:08:47 -0700 Subject: [PATCH] crash-reporter: Remove unused constants reported by clang. BUG=chromium:309859 TEST=`FEATURES=test USE=clang emerge-lumpy crash-reporter` Change-Id: Ie6f78ad420322f44ce0c108cb23de299981f60a4 Reviewed-on: https://chromium-review.googlesource.com/173937 Tested-by: Ben Chan Reviewed-by: Yunlian Jiang Commit-Queue: Ben Chan --- crash_reporter/crash_collector_test.cc | 6 ------ crash_reporter/crash_reporter.cc | 2 -- 2 files changed, 8 deletions(-) diff --git a/crash_reporter/crash_collector_test.cc b/crash_reporter/crash_collector_test.cc index 64a8653e1..661241edd 100644 --- a/crash_reporter/crash_collector_test.cc +++ b/crash_reporter/crash_collector_test.cc @@ -18,12 +18,6 @@ #include "gflags/gflags.h" #include "gtest/gtest.h" -// This test assumes the following standard binaries are installed. -static const char kBinBash[] = "/bin/bash"; -static const char kBinCp[] = "/bin/cp"; -static const char kBinEcho[] = "/bin/echo"; -static const char kBinFalse[] = "/bin/false"; - using base::FilePath; using chromeos::FindLog; using ::testing::Return; diff --git a/crash_reporter/crash_reporter.cc b/crash_reporter/crash_reporter.cc index 134e8e4ed..f70e3b9b2 100644 --- a/crash_reporter/crash_reporter.cc +++ b/crash_reporter/crash_reporter.cc @@ -44,8 +44,6 @@ DEFINE_string(exe, "", "Executable name of crashing process"); static const char kCrashCounterHistogram[] = "Logging.CrashCounter"; static const char kUserCrashSignal[] = "org.chromium.CrashReporter.UserCrash"; -static const char kUncleanShutdownFile[] = - "/var/lib/crash_reporter/pending_clean_shutdown"; static const char kKernelCrashDetected[] = "/var/run/kernel-crash-detected"; static const char kUncleanShutdownDetected[] = "/var/run/unclean-shutdown-detected";