]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Remove unused xauth code from test-python-greeter
authorRobert Ancell <robert.ancell@canonical.com>
Fri, 14 Jun 2013 02:22:34 +0000 (14:22 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Fri, 14 Jun 2013 02:22:34 +0000 (14:22 +1200)
tests/src/test-python-greeter

index 739c5671a9dfaa072443e9db8040c8d5edfba97b..de0d6e4c009bfb03e2620fff42c17e3190e3e841 100755 (executable)
@@ -198,20 +198,6 @@ if host == '':
 else:
     x_socket = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
     x_socket.connect ((host, 6000 + int (display_number)))
-authority = subprocess.check_output(['xauth', 'list']).split ()
-auth_name = ''
-auth_data = ''
-if len (authority) >= 3:
-    auth_name = authority[1]
-    hex = authority[2]
-    while len (hex) >= 2:
-        auth_data += chr (int (hex[:2], 16))
-        hex = hex[2:]
-def pad (value):
-    if len (value) % 4 != 0:
-        return value + '\x00' * (4 - len (value) % 4)
-    else:
-        return value
 
 status_notify ('%s CONNECT-XSERVER' % (greeter_id))