From 09c4d5c7b210857dbb87e551602a8d653a02b4b5 Mon Sep 17 00:00:00 2001 From: Magnus Feuer Date: Thu, 12 Feb 2015 13:39:39 -0800 Subject: Simplified --- python/rvi_service.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'python') diff --git a/python/rvi_service.py b/python/rvi_service.py index 3c08417..36817ce 100755 --- a/python/rvi_service.py +++ b/python/rvi_service.py @@ -49,21 +49,7 @@ def service_invoked(**args): sys.stdout.flush() return ['ok'] -def services_available(services): - print - print "Services available: ", services - sys.stdout.write("Press enter to quit: ") - sys.stdout.flush() - return ['ok'] - -def services_unavailable(services): - print - print "Services not available: ", services - - sys.stdout.write("Press enter to quit: ") - sys.stdout.flush() - return ['ok'] if len(sys.argv) != 3: usage() @@ -71,7 +57,6 @@ if len(sys.argv) != 3: # Grab the URL to use [ progname, rvi_node_url, service_name ] = sys.argv - # Setup a connection to the local RVI node rvi = RVI(rvi_node_url) @@ -85,10 +70,6 @@ rvi.start_serve_thread() # full_service_name = rvi.register_service(service_name, service_invoked) -# Tie callbacks to be invoked as the RVI node reports to us -# about other services being available. -rvi.set_services_available_callback(services_available) -rvi.set_services_unavailable_callback(services_unavailable) print "RVI General Service." print "RVI node URL: ", rvi_node_url -- cgit v1.2.1