lib: Remove unused procid_is_me()
authorVolker Lendecke <vl@samba.org>
Mon, 12 Oct 2015 15:37:14 +0000 (17:37 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 19 Oct 2015 10:09:10 +0000 (12:09 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/proto.h
source3/lib/util.c

index 567e1d82c230801734466d55cf03d1dbe80f8bea..4da638d962904996697ede5383ce166f2b3e48bb 100644 (file)
@@ -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);
index 1714614c5640a5d51a7b13666d904ea7d854ab48..22ad6120030d423abb0787c481e4af4378c32136 100644 (file)
@@ -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);