summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-24 23:06:26 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-25 09:05:33 +0200
commit2f435bb61aeaee142f8a826db6aed88d3dc3ab91 (patch)
tree4ad8bc1ba62d8fbb47d3ddabca712325a27d4f4d /source3
parenteec4f80d613c2c725194a23d208d51a616c3156e (diff)
downloadsamba-2f435bb61aeaee142f8a826db6aed88d3dc3ab91.tar.gz
samba-2f435bb61aeaee142f8a826db6aed88d3dc3ab91.tar.bz2
samba-2f435bb61aeaee142f8a826db6aed88d3dc3ab91.zip
s3:smbd: remove unused get_number_of_exclusive_open_oplocks()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/oplock.c9
-rw-r--r--source3/smbd/proto.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index e3f00a70ec..b4e8c9be5a 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -26,15 +26,6 @@
#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
*/
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 311072a8c0..eb98bc86c5 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -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);