[libbluray-devel] Remove unused hex_dump

hpi1 git at videolan.org
Sun Oct 19 20:42:08 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Oct 17 20:19:53 2014 +0300| [eaa5763f62863d9be03b664caa5ce6f15648d011] | committer: hpi1

Remove unused hex_dump

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=eaa5763f62863d9be03b664caa5ce6f15648d011
---

 src/examples/util.c |   18 ------------------
 src/examples/util.h |    1 -
 2 files changed, 19 deletions(-)

diff --git a/src/examples/util.c b/src/examples/util.c
index 467d15d..aaa4c46 100644
--- a/src/examples/util.c
+++ b/src/examples/util.c
@@ -23,24 +23,6 @@
 #include "util.h"
 
 void
-hex_dump(uint8_t *buf, int count)
-{
-    int ii;
-
-    for (ii = 0; ii < count; ii++)
-    {
-        if ((ii & 0xF) == 0xF)
-            fprintf(stderr, "%02x\n", buf[ii]);
-        else if ((ii & 0x7) == 0x7)
-            fprintf(stderr, "%02x  ", buf[ii]);
-        else
-            fprintf(stderr, "%02x ", buf[ii]);
-    }
-    if ((ii & 0xF) != 0x0)
-        fprintf(stderr, "\n");
-}
-
-void
 indent_printf(int level, const char *fmt, ...)
 {
     va_list ap;
diff --git a/src/examples/util.h b/src/examples/util.h
index 789b44e..144f8ec 100644
--- a/src/examples/util.h
+++ b/src/examples/util.h
@@ -39,6 +39,5 @@
 #   define wstat _wstati64
 #endif
 
-void hex_dump(uint8_t *buf, int count);
 void indent_printf(int level, const char *fmt, ...) BD_ATTR_FORMAT_PRINTF(2,3);
 



More information about the libbluray-devel mailing list