diff --git a/source3/include/proto.h b/source3/include/proto.h index 567e1d82c23..4da638d9629 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -439,7 +439,6 @@ uint32_t get_my_vnn(void); void set_my_unique_id(uint64_t unique_id); struct server_id pid_to_procid(pid_t pid); #define serverid_equal(p1, p2) server_id_equal(p1,p2) -bool procid_is_me(const struct server_id *pid); struct server_id interpret_pid(const char *pid_string); bool procid_valid(const struct server_id *pid); bool procid_is_local(const struct server_id *pid); diff --git a/source3/lib/util.c b/source3/lib/util.c index 1714614c564..22ad6120030 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1982,17 +1982,6 @@ struct server_id pid_to_procid(pid_t pid) .pid = pid, .unique_id = unique, .vnn = my_vnn }; } -bool procid_is_me(const struct server_id *pid) -{ - if (pid->pid != getpid()) - return False; - if (pid->task_id != 0) - return False; - if (pid->vnn != my_vnn) - return False; - return True; -} - struct server_id interpret_pid(const char *pid_string) { return server_id_from_string(get_my_vnn(), pid_string);