From 22d6bb357e438eb61025fbf96cdad5a278b9387d Mon Sep 17 00:00:00 2001 From: Walter Karas Date: Tue, 17 Nov 2020 12:53:06 -0600 Subject: [PATCH] Remove unnecessary cast from ReverseProxy. --- proxy/ReverseProxy.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/proxy/ReverseProxy.cc b/proxy/ReverseProxy.cc index 22b44af4ff8..c55df4a36bc 100644 --- a/proxy/ReverseProxy.cc +++ b/proxy/ReverseProxy.cc @@ -104,20 +104,15 @@ response_url_remap(HTTPHdr *response_header, UrlRewrite *table) // /** Used to read the remap.config file after the manager signals a change. */ -struct UR_UpdateContinuation; -using UR_UpdContHandler = int (UR_UpdateContinuation::*)(int, void *); struct UR_UpdateContinuation : public Continuation { int file_update_handler(int /* etype ATS_UNUSED */, void * /* data ATS_UNUSED */) { - (void)reloadUrlRewrite(); + static_cast(reloadUrlRewrite()); delete this; return EVENT_DONE; } - UR_UpdateContinuation(Ptr &m) : Continuation(m) - { - SET_HANDLER((UR_UpdContHandler)&UR_UpdateContinuation::file_update_handler); - } + UR_UpdateContinuation(Ptr &m) : Continuation(m) { SET_HANDLER(&UR_UpdateContinuation::file_update_handler); } }; bool