From 05eb56393a73f5e3f2f27633cecdf58132d5d803 Mon Sep 17 00:00:00 2001 From: barrierye Date: Mon, 30 Mar 2020 14:10:54 +0000 Subject: [PATCH] remove redundant code --- python/paddle_serving_server/monitor.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/python/paddle_serving_server/monitor.py b/python/paddle_serving_server/monitor.py index bb856ca7..2df9b9f4 100644 --- a/python/paddle_serving_server/monitor.py +++ b/python/paddle_serving_server/monitor.py @@ -160,14 +160,6 @@ class HDFSMonitor(Monitor): if os.system(cmd) != 0: raise Exception('pull remote dir failed.') - def _update_local_model(self, local_tmp_path, remote_model_name, local_path, - local_model_name): - tmp_model_path = os.path.join(local_tmp_path, remote_model_name) - local_model_path = os.path.join(local_path, local_model_name) - cmd = 'cp -r {}/* {}'.format(tmp_model_path, local_model_path) - if os.system(cmd) != 0: - raise Exception('pull remote dir failed.') - class FTPMonitor(Monitor): ''' FTP Monitor. ''' -- GitLab