s3-lib: Remove unused is_myworkgroup()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Feb 2012 04:20:24 +0000 (15:20 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Feb 2012 05:45:14 +0000 (16:45 +1100)
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett

source3/include/proto.h
source3/lib/util.c

index 28f9c6c185be7d55a6ca667c0acd49f6fae41811..b61fdf1efea2fa4deffdbb5f4245066744bd841d 100644 (file)
@@ -520,7 +520,6 @@ void free_namearray(name_compare_entry *name_array);
 bool fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
 bool fcntl_getlock(int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid);
 bool is_myname(const char *s);
-bool is_myworkgroup(const char *s);
 void ra_lanman_string( const char *native_lanman );
 const char *get_remote_arch_str(void);
 void set_remote_arch(enum remote_arch_types type);
index 4ae872aa3b8b086102c425969a0315a31bc52f37..822db43fef2c234e2dd8007d58d2ce81cfeaae8b 100644 (file)
@@ -1214,23 +1214,6 @@ bool is_myname(const char *s)
        return(ret);
 }
 
-/*******************************************************************
- Is the name specified our workgroup/domain.
- Returns true if it is equal, false otherwise.
-********************************************************************/
-
-bool is_myworkgroup(const char *s)
-{
-       bool ret = False;
-
-       if (strequal(s, lp_workgroup())) {
-               ret=True;
-       }
-
-       DEBUG(8, ("is_myworkgroup(\"%s\") returns %d\n", s, ret));
-       return(ret);
-}
-
 /*******************************************************************
  we distinguish between 2K and XP by the "Native Lan Manager" string
    WinXP => "Windows 2002 5.1"