- remove old code used to parse the old xml store, never used
[platform/upstream/libsolv.git] / tools / tools_util.h
index 6983bd8..15e38ca 100644 (file)
@@ -35,6 +35,7 @@ makeevr(Pool *pool, char *s)
 /**
  * split a string
  */
+#ifndef DISABLE_SPLIT
 static int
 split(char *l, char **sp, int m)
 {
@@ -54,6 +55,7 @@ split(char *l, char **sp, int m)
     }
   return i;
 }
+#endif
 
 /* this join does not depend on parsedata */
 static char *
@@ -104,46 +106,6 @@ join_freemem(void)
   _join_tmpl = 0;
 }
 
-// static char *
-// join(struct parsedata_common *pd, const char *s1, const char *s2, const char *s3)
-// {
-//   int l = 1;
-//   char *p;
-// 
-//   if (s1)
-//     l += strlen(s1);
-//   if (s2)
-//     l += strlen(s2);
-//   if (s3)
-//     l += strlen(s3);
-//   if (l > pd->tmpl)
-//     {
-//       pd->tmpl = l + 256;
-//       if (!pd->tmp)
-//         pd->tmp = malloc(pd->tmpl);
-//       else
-//         pd->tmp = realloc(pd->tmp, pd->tmpl);
-//     }
-//   p = pd->tmp;
-//   if (s1)
-//     {
-//       strcpy(p, s1);
-//       p += strlen(s1);
-//     }
-//   if (s2)
-//     {
-//       strcpy(p, s2);
-//       p += strlen(s2);
-//     }
-//   if (s3)
-//     {
-//       strcpy(p, s3);
-//       p += strlen(s3);
-//     }
-//   return pd->tmp;
-// }
-
-
 /* util function to set a translated string */
 static inline void repodata_set_tstr(Repodata *data, Id handle, const char *attrname, const char *lang, const char *str)
 {