Zebediah Figura : server: Remove no longer used enumerate_handles().

Alexandre Julliard julliard at winehq.org
Fri Sep 11 14:51:45 CDT 2020


Module: wine
Branch: master
Commit: 24021931a88ed917bc2b52c0914c059c2d8d2f30
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=24021931a88ed917bc2b52c0914c059c2d8d2f30

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Sep 10 16:17:16 2020 -0500

server: Remove no longer used enumerate_handles().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 server/handle.c | 21 ---------------------
 server/handle.h |  2 --
 2 files changed, 23 deletions(-)

diff --git a/server/handle.c b/server/handle.c
index 9ae99cd0c6..10e6a52e57 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -486,27 +486,6 @@ obj_handle_t find_inherited_handle( struct process *process, const struct object
     return 0;
 }
 
-/* enumerate handles of a given type */
-/* this is needed for window stations and desktops */
-obj_handle_t enumerate_handles( struct process *process, const struct object_ops *ops,
-                                unsigned int *index )
-{
-    struct handle_table *table = process->handles;
-    unsigned int i;
-    struct handle_entry *entry;
-
-    if (!table) return 0;
-
-    for (i = *index, entry = &table->entries[i]; i <= table->last; i++, entry++)
-    {
-        if (!entry->ptr) continue;
-        if (entry->ptr->ops != ops) continue;
-        *index = i + 1;
-        return index_to_handle(i);
-    }
-    return 0;
-}
-
 /* get/set the handle reserved flags */
 /* return the old flags (or -1 on error) */
 static int set_handle_flags( struct process *process, obj_handle_t handle, int mask, int flags )
diff --git a/server/handle.h b/server/handle.h
index f1deb79fb5..40b3b427c2 100644
--- a/server/handle.h
+++ b/server/handle.h
@@ -48,8 +48,6 @@ extern obj_handle_t open_object( struct process *process, obj_handle_t parent, u
                                  const struct object_ops *ops, const struct unicode_str *name,
                                  unsigned int attr );
 extern obj_handle_t find_inherited_handle( struct process *process, const struct object_ops *ops );
-extern obj_handle_t enumerate_handles( struct process *process, const struct object_ops *ops,
-                                       unsigned int *index );
 extern void close_process_handles( struct process *process );
 extern struct handle_table *alloc_handle_table( struct process *process, int count );
 extern struct handle_table *copy_handle_table( struct process *process, struct process *parent );




More information about the wine-cvs mailing list