]> granicus.if.org Git - graphviz/commitdiff
remove unused get_md5_key
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Apr 2021 02:46:06 +0000 (19:46 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 May 2021 14:47:30 +0000 (07:47 -0700)
Related to #2050.

cmd/smyrna/viewport.c
cmd/smyrna/viewport.h

index 24212632de9bbf4b0722279a9a9147648b375bab..a77ae18e3d26b8d77f0303846cb42401c1e91542 100644 (file)
@@ -26,7 +26,6 @@
 #include <common/colorprocs.h>
 #include <common/memory.h>
 #include "topviewsettings.h"
-#include "md5.h"
 #include "arcball.h"
 #include "hotkeymap.h"
 #include "topviewfuncs.h"
@@ -34,8 +33,6 @@
 
 
 static colorschemaset *create_color_theme(int themeid);
-static md5_byte_t *get_md5_key(Agraph_t * graph);
-
 
 #define countof( array ) ( sizeof( array )/sizeof( array[0] ) )
 
@@ -573,37 +570,6 @@ void switch_graph(int graphId)
        activate(graphId, 0);
 }
 
-static md5_byte_t md5_digest[16];
-static md5_state_t pms;
-
-static int append_to_md5(void *chan, const char *str)
-{
-    md5_append(&pms, (const unsigned char *) str, (int) strlen(str));
-    return 1;
-
-}
-static int flush_md5(void *chan)
-{
-    md5_finish(&pms, md5_digest);
-    return 1;
-}
-
-
-static md5_byte_t *get_md5_key(Agraph_t * graph)
-{
-    Agiodisc_t *xio;
-    Agiodisc_t a;
-    xio = graph->clos->disc.io;
-    a.afread = graph->clos->disc.io->afread;
-    a.putstr = append_to_md5;
-    a.flush = flush_md5;
-    graph->clos->disc.io = &a;
-    md5_init(&pms);
-    agwrite(graph, NULL);
-    graph->clos->disc.io = xio;
-    return md5_digest;
-}
-
 /* save_graph_with_file_name:
  * saves graph with file name; if file name is NULL save as is
  */
index 74e6861a377250f7dbef3347980ec3075b2e8c20..ff2c89bf2973f20dbb8ce6378bf4f6322fdcd3e1 100644 (file)
@@ -26,7 +26,6 @@ extern "C" {
 #if 0
     void clear_viewport(ViewInfo * view);
     colorschemaset *create_color_theme(int themeid);
-    md5_byte_t *get_md5_key(Agraph_t * graph);
     void movenode(void *n, float dx, float dy);
     void please_dont_wait(void);
     void please_wait(void);