ledflasher: Remove handler for base.identify command

Since libweave no longer has the 'base' trait, its 'reboot' and
'identify' commands are removed too.

Delete the command handler for 'base.identify' or else ledflasher just
crashes at startup (with 'unknown command' error).

Change-Id: I7d2a19640c53dd288620c0e6dabae389f26dbc11
diff --git a/src/ledflasher/ledflasher.cpp b/src/ledflasher/ledflasher.cpp
index bce3420..e3b79e8 100644
--- a/src/ledflasher/ledflasher.cpp
+++ b/src/ledflasher/ledflasher.cpp
@@ -36,8 +36,6 @@
 namespace {
 const char kLedFlasherComponent[] = "ledflasher";
 const char kLedFlasherTrait[] = "_ledflasher";
-const char kBaseComponent[] = "base";
-const char kBaseTrait[] = "base";
 const char kLedComponentPrefix[] = "led";
 const char kOnOffTrait[] = "onOff";
 const char kLedInfoTrait[] = "_ledInfo";
@@ -62,7 +60,6 @@
   // Particular command handlers for various commands.
   void OnSetConfig(size_t led_index, std::unique_ptr<weaved::Command> command);
   void OnAnimate(std::unique_ptr<weaved::Command> command);
-  void OnIdentify(std::unique_ptr<weaved::Command> command);
 
   // Helper methods to propagate device state changes to Buffet and hence to
   // the cloud server or local clients.
@@ -125,9 +122,6 @@
       kLedFlasherTrait,
       "animate",
       base::Bind(&Daemon::OnAnimate, weak_ptr_factory_.GetWeakPtr()));
-  weave_service->AddCommandHandler(
-      kBaseComponent, kBaseTrait, "identify",
-      base::Bind(&Daemon::OnIdentify, weak_ptr_factory_.GetWeakPtr()));
 
   weave_service->SetPairingInfoListener(
       base::Bind(&Daemon::OnPairingInfoChanged,
@@ -258,19 +252,6 @@
   command->Complete({}, nullptr);
 }
 
-void Daemon::OnIdentify(std::unique_ptr<weaved::Command> command) {
-  if (!led_service_.get()) {
-    command->Abort("_system_error", "ledservice unavailable", nullptr);
-    return;
-  }
-  StartAnimation("blink", base::TimeDelta::FromMilliseconds(500));
-  command->Complete({}, nullptr);
-
-  brillo::MessageLoop::current()->PostDelayedTask(
-      base::Bind(&Daemon::StopAnimation, weak_ptr_factory_.GetWeakPtr()),
-      base::TimeDelta::FromSeconds(2));
-}
-
 void Daemon::OnPairingInfoChanged(
     const weaved::Service::PairingInfo* pairing_info) {
   LOG(INFO) << "Daemon::OnPairingInfoChanged: " << pairing_info;