cellular_ActivateLTE: remove dead code
Some methods are now unused.
BUG=None
TEST=run test
Change-Id: I56959cc06f8a80820ef8b16c9069e8698a0a363f
Reviewed-on: https://chromium-review.googlesource.com/1551969
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
diff --git a/client/site_tests/cellular_ActivateLTE/cellular_ActivateLTE.py b/client/site_tests/cellular_ActivateLTE/cellular_ActivateLTE.py
index a1ad34e..8afad98 100644
--- a/client/site_tests/cellular_ActivateLTE/cellular_ActivateLTE.py
+++ b/client/site_tests/cellular_ActivateLTE/cellular_ActivateLTE.py
@@ -189,23 +189,6 @@
timeout=LONG_TIMEOUT)
- def EnsureModemStateReached(self, expected_state, timeout):
- """
- Asserts that the underlying modem state becomes |expected_state| within
- |timeout|.
-
- @param expected_state: The expected modem state.
- @param timeout: Timeout in which the condition should be met.
-
- """
- utils.poll_for_condition(
- lambda: self.GetModemState() == expected_state,
- exception=error.TestFail(
- 'Modem failed to reach state ' +
- mm1_constants.ModemStateToString(expected_state)),
- timeout=timeout)
-
-
def CheckServiceActivationState(self, expected_state):
"""
Asserts that the service activation state matches |expected_state|
@@ -252,27 +235,6 @@
return service
- def FindCellularDevice(self):
- """Returns the current cellular device."""
- device = self.test_env.shill.find_cellular_device_object()
- if not device:
- raise error.TestError('Could not find cellular device.')
- return device
-
-
- def ResetCellularDevice(self):
- """
- Resets all modems, guaranteeing that the operation succeeds and doesn't
- fail due to race conditions in pseudomodem start-up and test execution.
-
- """
- self.EnsureModemStateReached(
- mm1_constants.MM_MODEM_STATE_ENABLED, SHORT_TIMEOUT)
- self.test_env.shill.reset_modem(self.FindCellularDevice())
- self.EnsureModemStateReached(
- mm1_constants.MM_MODEM_STATE_ENABLED, SHORT_TIMEOUT)
-
-
def run_once(self):
tests = [
ActivationResetTest(self),