Diff between ad35b244c910e17cb564e074d89da1c0749d07b4 and 6cd899c1729cdc15ac81350ca171021e34109c05

Changed Files

File Additions Deletions Status
test/test-device +0 -31 modified

Full Patch

diff --git a/test/test-device b/test/test-device
index 2be5394..1e4597d 100755
--- a/test/test-device
+++ b/test/test-device
@@ -117,24 +117,6 @@ if (args[0] == "disconnect"):
 			device.Disconnect()
 	sys.exit(0)
 
-if (args[0] == "discover"):
-	if (len(args) < 2):
-		print("Need address parameter")
-	else:
-		device = bluezutils.find_device(args[1], options.dev_id)
-		if (len(args) < 3):
-			pattern = ""
-		else:
-			pattern = args[2]
-		services = device.DiscoverServices(pattern);
-		for key in services.keys():
-			p = re.compile(">.*?<")
-			xml = p.sub("><", services[key].replace("\n", ""))
-			print("[ 0x%5x ]" % (key))
-			print(xml)
-			print()
-	sys.exit(0)
-
 if (args[0] == "class"):
 	if (len(args) < 2):
 		print("Need address parameter")
@@ -216,18 +198,5 @@ if (args[0] == "blocked"):
 			props.Set("org.bluez.Device1", "Blocked", value)
 	sys.exit(0)
 
-if (args[0] == "services"):
-	if (len(args) < 2):
-		print("Need address parameter")
-	else:
-		device = bluezutils.find_device(args[1], options.dev_id)
-		path = device.object_path
-		props = dbus.Interface(bus.get_object("org.bluez", path),
-					"org.freedesktop.DBus.Properties")
-		services = props.Get("org.bluez.Device1", "Services")
-		for path in services:
-			print(path)
-	sys.exit(0)
-
 print("Unknown command")
 sys.exit(1)