Skip to content

Commit

Permalink
Remove unused resUriMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf committed Nov 28, 2017
1 parent fd4e519 commit 7a393cd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib/wsman-dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,7 @@ SoapDispatchH wsman_dispatcher(WsContextH cntx, void *data, WsXmlDocH doc)
#ifdef ENABLE_EVENTING_SUPPORT
WsXmlNodeH nodedoc = NULL;
#endif
/* FIXME: resUriMatch set but not used */
int i, resUriMatch = 0;
int i;
char *ns = NULL;

WsDispatchInterfaceInfo *r = NULL;
Expand Down Expand Up @@ -993,7 +992,6 @@ SoapDispatchH wsman_dispatcher(WsContextH cntx, void *data, WsXmlDocH doc)
if ((ns = wsman_dispatcher_match_ns(ifc,
XML_NS_WSMAN_ID))) {
r = ifc;
resUriMatch = 1;
break;
}
debug("ns did not match");
Expand All @@ -1006,12 +1004,10 @@ SoapDispatchH wsman_dispatcher(WsContextH cntx, void *data, WsXmlDocH doc)
else if (ifc->wsmanResourceUri == NULL &&
(ns = wsman_dispatcher_match_ns(ifc, uri))) {
r = ifc;
resUriMatch = 1;
break;
} else if (ifc->wsmanResourceUri &&
!strcmp(uri, ifc->wsmanResourceUri)) {
r = ifc;
resUriMatch = 1;
break;
}
node = list_next((list_t *) dispInfo->interfaces, node);
Expand Down

0 comments on commit 7a393cd

Please sign in to comment.