]> granicus.if.org Git - graphviz/commitdiff
libcommon: remove unused 'UF_remove'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Oct 2021 04:06:52 +0000 (21:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Oct 2021 21:18:51 +0000 (14:18 -0700)
lib/common/utils.c
lib/common/utils.h
lib/gvc/gvc.def

index 0761d8b016ea0349b61b086f255ee22a21d1786d..cd0152864dac367705189a8954b04be808433b9f 100644 (file)
@@ -182,13 +182,6 @@ node_t *UF_union(node_t * u, node_t * v)
     return v;
 }
 
-void UF_remove(node_t * u, node_t * v)
-{
-    assert(ND_UF_size(u) == 1);
-    ND_UF_parent(u) = u;
-    ND_UF_size(v) -= ND_UF_size(u);
-}
-
 void UF_singleton(node_t * u)
 {
     ND_UF_size(u) = 1;
index bbb78c7aad1cf444f7cf86894edc4e37c8251dc2..68815bff4ae3147ea586b65c79dc8b282d3ff0b0 100644 (file)
@@ -81,7 +81,6 @@ extern "C" {
 
     UTILS_API Agnode_t *UF_find(Agnode_t *);
     UTILS_API Agnode_t *UF_union(Agnode_t *, Agnode_t *);
-    UTILS_API void UF_remove(Agnode_t *, Agnode_t *);
     UTILS_API void UF_singleton(Agnode_t *);
     UTILS_API void UF_setname(Agnode_t *, Agnode_t *);
 
index 0dc35a06be895e23582e3b057bc66927e1bc2c8d..016eb5991540c093f3cb92914165fec77f749f2f 100644 (file)
@@ -282,7 +282,6 @@ textfont_dict_close
 textspan_size    
 translate_bb    
 UF_find    
-UF_remove    
 UF_setname    
 UF_singleton    
 UF_union