summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 15:20:24 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-10 16:45:14 +1100
commit474fbfb7b712fe6be61505ca1796d0a3442a618a (patch)
tree338531347e5c95994f4821f0400486f6e9838467
parent45123530e52d9d096d5a01f02ba4672bd75b9305 (diff)
downloadsamba-474fbfb7b712fe6be61505ca1796d0a3442a618a.tar.gz
samba-474fbfb7b712fe6be61505ca1796d0a3442a618a.tar.bz2
samba-474fbfb7b712fe6be61505ca1796d0a3442a618a.zip
s3-lib: Remove unused is_myworkgroup()
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/util.c17
2 files changed, 0 insertions, 18 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 28f9c6c185..b61fdf1efe 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 4ae872aa3b..822db43fef 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1215,23 +1215,6 @@ bool is_myname(const char *s)
}
/*******************************************************************
- 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"
WinXP 64bit => "Windows XP 5.2"