goofy: Remove useless function

`get_hwid_cfg()` was used to find the test list, which we don't do
anymore.  And also, we don't need to store `hwid_cfg` in the factory
state instance since no one access that field.

BUG=None
TEST=make test

Change-Id: I5e47bdca6422de7d72888e644119066c556615b2
Reviewed-on: https://chromium-review.googlesource.com/517005
Commit-Ready: Yong Hong <yhong@chromium.org>
Tested-by: Yong Hong <yhong@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
diff --git a/py/goofy/goofy.py b/py/goofy/goofy.py
index 6b4902c..7b2e251 100755
--- a/py/goofy/goofy.py
+++ b/py/goofy/goofy.py
@@ -79,15 +79,6 @@
 Status = type_utils.Enum(['UNINITIALIZED', 'INITIALIZING', 'RUNNING',
                           'TERMINATING', 'TERMINATED'])
 
-def get_hwid_cfg():
-  """Returns the HWID config tag, or an empty string if none can be found."""
-  if 'CROS_HWID' in os.environ:
-    return os.environ['CROS_HWID']
-  if os.path.exists(HWID_CFG_PATH):
-    with open(HWID_CFG_PATH, 'r') as hwid_cfg_handle:
-      return hwid_cfg_handle.read().strip()
-  return ''
-
 _inited_logging = False
 
 
@@ -1052,7 +1043,6 @@
     self.start_goofy_server()
     self.init_state_instance()
     self.init_i18n()
-    self.state_instance.set_shared_data('hwid_cfg', get_hwid_cfg())
     self.last_shutdown_time = (
         self.state_instance.get_shared_data('shutdown_time', optional=True))
     self.state_instance.del_shared_data('shutdown_time', optional=True)