From 2672101cc4fa406ed89647b3d541556e548c10bf Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 5 Jan 2011 14:50:21 +0100 Subject: s3: Remove some unused code --- source3/libsmb/namequery.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'source3/libsmb/namequery.c') diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index ab98a12146..e7dd22ad10 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -657,32 +657,6 @@ static NTSTATUS nb_trans_recv(struct tevent_req *req, return NT_STATUS_OK; } -/**************************************************************************** - Try and send a request to nmbd to send a packet_struct packet first. - If this fails, use send_packet(). -**************************************************************************/ - -static bool send_packet_request(struct packet_struct *p) -{ - struct messaging_context *msg_ctx = server_messaging_context(); - if (msg_ctx) { - pid_t nmbd_pid = pidfile_pid("nmbd"); - - if (nmbd_pid) { - /* Try nmbd. */ - if (NT_STATUS_IS_OK(messaging_send_buf(msg_ctx, - pid_to_procid(nmbd_pid), - MSG_SEND_PACKET, - (uint8_t *)p, - sizeof(struct packet_struct)))) { - return true; - } - } - } - - return send_packet(p); -} - /**************************************************************************** Do a NBT node status query on an open socket and return an array of structures holding the returned names or NULL if the query failed. -- cgit