From 0e4bf56f3c04e32949ef51258e6a0315b507edb5 Mon Sep 17 00:00:00 2001 From: Tao Li Date: Mon, 1 Apr 2019 11:23:03 +0800 Subject: [PATCH] Drop the redundant code The get_host operation is redundant and should be dropped. Closes-Bug: #1823826 Signed-off-by: Tao Li Change-Id: I62d436092ead426122b2cce680ba9aa398b8e80e --- mtce/src/maintenance/mtcHttpSvr.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mtce/src/maintenance/mtcHttpSvr.cpp b/mtce/src/maintenance/mtcHttpSvr.cpp index e213721f..309a11ce 100644 --- a/mtce/src/maintenance/mtcHttpSvr.cpp +++ b/mtce/src/maintenance/mtcHttpSvr.cpp @@ -844,10 +844,6 @@ void mtcHttpSvr_handler (struct evhttp_request *req, void *arg) size_t len = strlen(CLIENT_SYSINV_URL) ; uuid = (url_ptr+len) ; hostname = obj_ptr->get_host(uuid) ; - if ( uuid.length() == UUID_LEN ) - { - hostname = obj_ptr->get_host(uuid) ; - } if (( http_cmd == EVHTTP_REQ_GET ) && ( client == CLIENT_VIM_SYSTEMS )) { http_status_code = obj_ptr->mtcVimApi_system_info ( response );