diff --git a/src/lcm/LifeCycleActions.cc b/src/lcm/LifeCycleActions.cc index 9f3426bc99..b60b47912e 100644 --- a/src/lcm/LifeCycleActions.cc +++ b/src/lcm/LifeCycleActions.cc @@ -556,7 +556,6 @@ void LifeCycleManager::trigger_undeploy(int vid, bool hard, int req_id = ra.req_id; trigger([this, hard, vid, uid, gid, req_id] { - unsigned int port; auto vm = vmpool->get(vid); if ( vm == nullptr ) @@ -602,14 +601,6 @@ void LifeCycleManager::trigger_undeploy(int vid, bool hard, vmm->trigger_shutdown(vid); } - VectorAttribute * graphics = vm->get_template_attribute("GRAPHICS"); - - if ( graphics != 0 && (graphics->vector_value("PORT", port) == 0)) - { - graphics->remove("PORT"); - clpool->release_vnc_port(vm->get_cid(), port); - } - vmpool->update_history(vm.get()); vmpool->update(vm.get());