From: Volker Lendecke Date: Sat, 3 Jan 2026 09:17:17 +0000 (+0100) Subject: lib: Remove a function unused since 2016 X-Git-Tag: tdb-1.4.15~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=290a060c57a8ec16e4d26f65f2bac16f9cc62fbe;p=thirdparty%2Fsamba.git lib: Remove a function unused since 2016 Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/include/proto.h b/source3/include/proto.h index d851caefb1d..ca659235697 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -366,7 +366,6 @@ bool split_domain_user(TALLOC_CTX *mem_ctx, char **user); const char *strip_hostname(const char *s); bool any_nt_status_not_ok(NTSTATUS err1, NTSTATUS err2, NTSTATUS *result); -int timeval_to_msec(struct timeval t); bool is_executable(const char *fname); bool map_open_params_to_ntcreate(const char *smb_base_fname, int deny_mode, int open_func, diff --git a/source3/lib/util.c b/source3/lib/util.c index 8f65f6866a5..3308654d236 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1531,11 +1531,6 @@ bool any_nt_status_not_ok(NTSTATUS err1, NTSTATUS err2, NTSTATUS *result) return false; } -int timeval_to_msec(struct timeval t) -{ - return t.tv_sec * 1000 + (t.tv_usec+999) / 1000; -} - /******************************************************************* Return True if the filename is one of the special executable types. ********************************************************************/