Kill off deprecated and unused rpmGetMachine() entirely
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Nov 2007 10:26:46 +0000 (12:26 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Nov 2007 10:26:46 +0000 (12:26 +0200)
lib/rpmlib.h
lib/rpmrc.c

index c40f0f4..ecea4a9 100644 (file)
@@ -579,17 +579,6 @@ int rpmShowRC(FILE * fp);
 void rpmSetTables(int archTable, int osTable);
 
 /** \ingroup rpmrc
- * Return current arch/os names.
- * @deprecated Use rpmExpand on _target_* macros.
- * @todo Eliminate from API.
- *
- * @retval arch                address of arch name (or NULL)
- * @retval os          address of os name (or NULL)
- */
-void rpmGetMachine( const char **arch,
-               const char **os);
-
-/** \ingroup rpmrc
  * Destroy rpmrc arch/os compatibility tables.
  * @todo Eliminate from API.
  */
index 849d755..d33c9ee 100644 (file)
@@ -1321,15 +1321,6 @@ int rpmMachineScore(int type, const char * name)
     return (info != NULL ? info->score : 0);
 }
 
-void rpmGetMachine(const char ** arch, const char ** os)
-{
-    if (arch)
-       *arch = current[ARCH];
-
-    if (os)
-       *os = current[OS];
-}
-
 /** \ingroup rpmrc
  * Set current arch/os names.
  * NULL as argument is set to the default value (munged uname())