server: Remove dupliate function in factory_unittest.

BUG=None.
TEST=unittets.

Change-Id: I10012d7d5fa2f354753a42c6f18286f90176c4da
Reviewed-on: https://chromium-review.googlesource.com/430150
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/server/hosts/factory_unittest.py b/server/hosts/factory_unittest.py
index 3289bcd..6d52442 100755
--- a/server/hosts/factory_unittest.py
+++ b/server/hosts/factory_unittest.py
@@ -97,19 +97,6 @@
         paramiko_host.ParamikoHost = self._orig_paramiko_host
 
 
-    def _gen_machine_dict(self, hostname='localhost', labels=[], attributes={}):
-        """Generate a machine dictionary with the specified parameters.
-
-        @param hostname: hostname of machine
-        @param labels: list of host labels
-        @param attributes: dict of host attributes
-
-        @return: machine dict with mocked AFE Host object.
-        """
-        afe_host = base_label_unittest.MockAFEHost(labels, attributes)
-        return {'hostname': hostname, 'afe_host': afe_host}
-
-
     def test_use_specified(self):
         """Confirm that the specified host and connectivity classes are used."""
         machine = _gen_machine_dict()