Browse Source

remove a unused section of code

Julius Pfrommer 7 years ago
parent
commit
522573c084
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/server/ua_server.c

+ 0 - 6
src/server/ua_server.c

@@ -109,12 +109,6 @@ UA_Server_addExternalNamespace(UA_Server *server, const UA_String *url,
     if(!nodeStore)
         return UA_STATUSCODE_BADARGUMENTSMISSING;
 
-    char urlString[256];
-    if(url->length >= 256)
-        return UA_STATUSCODE_BADINTERNALERROR;
-    memcpy(urlString, url->data, url->length);
-    urlString[url->length] = 0;
-
     size_t size = server->externalNamespacesSize;
     server->externalNamespaces =
         UA_realloc(server->externalNamespaces, sizeof(UA_ExternalNamespace) * (size + 1));