From 8bdffe6f9c668ac7ac6e3081a391a77430b47cf2 Mon Sep 17 00:00:00 2001
From: Sebastian Goscik <sebastian.goscik@live.co.uk>
Date: Wed, 1 Jun 2016 13:48:55 +0100
Subject: [PATCH] LinuxDevice: Removed has_root method

Was not used anywhere and is_rooted should be used instead
---
 wlauto/common/linux/device.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py
index 2733fb20..80eaee64 100644
--- a/wlauto/common/linux/device.py
+++ b/wlauto/common/linux/device.py
@@ -685,15 +685,6 @@ class LinuxDevice(BaseLinuxDevice):
 
     # Execution
 
-    def has_root(self):
-        try:
-            self.execute('ls /', as_root=True)
-            return True
-        except DeviceError as e:
-            if 'not in the sudoers file' not in e.message:
-                raise e
-            return False
-
     def execute(self, command, timeout=default_timeout, check_exit_code=True, background=False,
                 as_root=False, strip_colors=True, **kwargs):
         """