update_engine: Remove GPIO support.

We have not used GPIO since Jan 2013. This CL removes the GPIO handling code.
As a side effect, it also removes dependency on libudev.

BUG=chromium:221725
CQ-DEPEND=CL:199683
TEST=unittest
TEST=AU end2end test on real device from older version to a version that
has CL applied, then from that to another newer version (need not have
this CL applied).

Change-Id: I4352488ec360b44a44b137c40a3ae4ec35c6fe9d
Reviewed-on: https://chromium-review.googlesource.com/199626
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Nam Nguyen <namnguyen@chromium.org>
Tested-by: Nam Nguyen <namnguyen@chromium.org>
diff --git a/real_system_state.h b/real_system_state.h
index aac7efc..28ba254 100644
--- a/real_system_state.h
+++ b/real_system_state.h
@@ -12,7 +12,6 @@
 
 #include "update_engine/clock.h"
 #include "update_engine/connection_manager.h"
-#include "update_engine/gpio_handler.h"
 #include "update_engine/hardware.h"
 #include "update_engine/p2p_manager.h"
 #include "update_engine/payload_state.h"
@@ -33,7 +32,7 @@
 
   // Initializes and sets systems objects that require an initialization
   // separately from construction. Returns |true| on success.
-  bool Initialize(bool enable_gpio);
+  bool Initialize();
 
   virtual inline void set_device_policy(
       const policy::DevicePolicy* device_policy) override {
@@ -72,10 +71,6 @@
     return &payload_state_;
   }
 
-  virtual inline GpioHandler* gpio_handler() override {
-    return gpio_handler_.get();
-  }
-
   virtual inline UpdateAttempter* update_attempter() override {
     return &update_attempter_;
   }
@@ -124,13 +119,6 @@
   // response, URL, backoff states.
   PayloadState payload_state_;
 
-  // Pointer to a GPIO handler and other needed modules (note that the order of
-  // declaration significant for destruction, as the latter depends on the
-  // former).
-  scoped_ptr<UdevInterface> udev_iface_;
-  scoped_ptr<FileDescriptor> file_descriptor_;
-  scoped_ptr<GpioHandler> gpio_handler_;
-
   // The dbus object used to initialize the update attempter.
   RealDBusWrapper dbus_;