r12487: Remove obsolete function
authorJelmer Vernooij <jelmer@samba.org>
Mon, 26 Dec 2005 00:07:17 +0000 (00:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:44 +0000 (13:47 -0500)
source/lib/util.c

index 2b13cd3d2f134325b87f7927ed7998503c2e3ce1..3b4064098c6b7a634f4807e9fbf9d3f9a315f921 100644 (file)
@@ -281,30 +281,6 @@ char* get_myname(void)
        return hostname;
 }
 
-/****************************************************************************
- Interpret a protocol description string, with a default.
-****************************************************************************/
-
-int interpret_protocol(char *str,int def)
-{
-       if (strequal(str,"NT1"))
-               return(PROTOCOL_NT1);
-       if (strequal(str,"LANMAN2"))
-               return(PROTOCOL_LANMAN2);
-       if (strequal(str,"LANMAN1"))
-               return(PROTOCOL_LANMAN1);
-       if (strequal(str,"CORE"))
-               return(PROTOCOL_CORE);
-       if (strequal(str,"COREPLUS"))
-               return(PROTOCOL_COREPLUS);
-       if (strequal(str,"CORE+"))
-               return(PROTOCOL_COREPLUS);
-  
-       DEBUG(0,("Unrecognised protocol level %s\n",str));
-  
-       return(def);
-}
-
 /****************************************************************************
  Return true if a string could be a pure IP address.
 ****************************************************************************/