replace unhexify with hex2bin
[deliverable/binutils-gdb.git] / gdb / common / rsp-low.c
index c7a00c1308b4c08d56f5d2fc873af8c9f24383b6..decd23c846b946eca5bafc888db5a12fc77c657f 100644 (file)
@@ -127,25 +127,6 @@ hex2bin (const char *hex, gdb_byte *bin, int count)
   return i;
 }
 
-int
-unhexify (char *bin, const char *hex, int count)
-{
-  int i;
-
-  for (i = 0; i < count; i++)
-    {
-      if (hex[0] == 0 || hex[1] == 0)
-       {
-         /* Hex string is short, or of uneven length.
-            Return the count that has been converted so far. */
-         return i;
-       }
-      *bin++ = fromhex (hex[0]) * 16 + fromhex (hex[1]);
-      hex += 2;
-    }
-  return i;
-}
-
 void
 convert_ascii_to_int (const char *from, unsigned char *to, int n)
 {
This page took 0.02391 seconds and 4 git commands to generate.