[IMP] hw_scanner: remove useless controller
authorFrédéric van der Essen <fva@openerp.com>
Wed, 12 Feb 2014 16:51:45 +0000 (17:51 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Wed, 12 Feb 2014 16:51:45 +0000 (17:51 +0100)
bzr revid: fva@openerp.com-20140212165145-i1vevufc1bluq31y

addons/hw_scanner/controllers/main.py

index 8fbdae6..64daf20 100644 (file)
@@ -129,10 +129,6 @@ class Scanner(Thread):
             self.set_status('error',str(e))
             return None
 
-    @http.route('/hw_proxy/Vis_scanner_connected', type='json', auth='none', cors='*')
-    def is_scanner_connected(self):
-        return self.get_device() != None
-    
     def get_barcode(self):
         """ Returns a scanned barcode. Will wait at most 5 seconds to get a barcode, and will
             return barcode scanned in the past if they are not older than 5 seconds and have not