s3:smbd: remove unused get_number_of_exclusive_open_oplocks()
authorStefan Metzmacher <metze@samba.org>
Thu, 24 May 2012 21:06:26 +0000 (23:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 25 May 2012 07:05:33 +0000 (09:05 +0200)
metze

source3/smbd/oplock.c
source3/smbd/proto.h

index e3f00a70ecc94aebaa03c61e2f12a2380e42a953..b4e8c9be5a505fb5b2dcebba891e82ecfe2d132b 100644 (file)
 #include "messages.h"
 #include "../librpc/gen_ndr/open_files.h"
 
-/****************************************************************************
- Get the number of current exclusive oplocks.
-****************************************************************************/
-
-int32 get_number_of_exclusive_open_oplocks(void)
-{
-  return exclusive_oplocks_open;
-}
-
 /*
  * helper function used by the kernel oplock backends to post the break message
  */
index 311072a8c07da9770bbe50ca2f552922fc0c61e9..eb98bc86c5e411390f9587738e53feb44a50385e 100644 (file)
@@ -662,7 +662,6 @@ NTSTATUS get_relative_fid_filename(connection_struct *conn,
 
 /* The following definitions come from smbd/oplock.c  */
 
-int32 get_number_of_exclusive_open_oplocks(void);
 void break_kernel_oplock(struct messaging_context *msg_ctx, files_struct *fsp);
 bool set_file_oplock(files_struct *fsp, int oplock_type);
 void release_file_oplock(files_struct *fsp);