From 0a89722671aa7fba8d7befa530dc69bb67260919 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 17 Aug 2010 06:40:38 -0400 Subject: [PATCH] s3-ads: Remove unused function and file --- source3/Makefile.in | 2 +- source3/libads/ads_proto.h | 2 -- source3/libads/ads_utils.c | 28 ---------------------------- 3 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 source3/libads/ads_utils.c diff --git a/source3/Makefile.in b/source3/Makefile.in index fac4e0be5e7..6d08f43590a 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -460,7 +460,7 @@ LIBADS_OBJ = libads/ldap.o \ libads/kerberos_util.o \ libads/ldap_user.o \ libads/ads_struct.o libads/kerberos_keytab.o \ - libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \ + libads/disp_sec.o libads/ldap_utils.o \ libads/ldap_schema.o libads/util.o libads/ndr.o LIBADS_SERVER_OBJ = libads/kerberos_verify.o libads/authdata.o \ diff --git a/source3/libads/ads_proto.h b/source3/libads/ads_proto.h index aedd23f1c5d..b9240346f66 100644 --- a/source3/libads/ads_proto.h +++ b/source3/libads/ads_proto.h @@ -9,8 +9,6 @@ ADS_STRUCT *ads_init(const char *realm, bool ads_set_sasl_wrap_flags(ADS_STRUCT *ads, int flags); void ads_destroy(ADS_STRUCT **ads); -const char *ads_get_ldap_server_name(ADS_STRUCT *ads); - /* The following definitions come from libads/disp_sec.c */ void ads_disp_sd(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, struct security_descriptor *sd); diff --git a/source3/libads/ads_utils.c b/source3/libads/ads_utils.c deleted file mode 100644 index ec3efa85509..00000000000 --- a/source3/libads/ads_utils.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - Unix SMB/CIFS implementation. - ads (active directory) utility library - - Copyright (C) Stefan (metze) Metzmacher 2002 - Copyright (C) Andrew Tridgell 2001 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - -#include "includes.h" -#include "ads.h" - -const char *ads_get_ldap_server_name(ADS_STRUCT *ads) -{ - return ads->config.ldap_server_name; -} -- 2.11.4.GIT