optimization: check key storage before doing the forward
[platform/upstream/libsolv.git] / src / evr.h
index a856eb1..787b6bb 100644 (file)
--- a/src/evr.h
+++ b/src/evr.h
@@ -24,32 +24,12 @@ extern "C" {
 #define EVRCMP_MATCH                   2
 #define EVRCMP_COMPARE_EVONLY          3
 
-extern int sat_vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
+extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
 
 extern int pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode);
 extern int pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode);
 extern int pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
 
-/* obsolete, do not use in new code */
-#ifdef OBSOLETE_INTERFACE
-static inline int vercmp(const char *s1, const char *q1, const char *s2, const char *q2)
-{
-  return sat_vercmp(s1, q1, s2, q2);
-}
-static inline int evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode)
-{
-  return pool_evrcmp_str(pool, evr1, evr2, mode);
-}
-static inline int evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode)
-{
-  return pool_evrcmp(pool, evr1id, evr2id, mode);
-}
-static inline int evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release)
-{
-  return pool_evrmatch(pool, evrid, epoch, version, release);
-}
-#endif
-
 #ifdef __cplusplus
 }
 #endif