Просмотр исходного кода

libdpkg: Remove unused nfields variable

Guillem Jover лет назад: 16
Родитель
Сommit
254b3752d3
2 измененных файлов с 0 добавлено и 3 удалено
  1. 0 2
      lib/dpkg/parse.c
  2. 0 1
      lib/dpkg/parsedump.h

+ 0 - 2
lib/dpkg/parse.c

@@ -80,8 +80,6 @@ const struct fieldinfo fieldinfos[]= {
   {  NULL   /* sentinel - tells code that list is ended */                               }
 };
 
-const int nfields = array_count(fieldinfos);
-
 int parsedb(const char *filename, enum parsedbflags flags,
             struct pkginfo **donep, FILE *warnto, int *warncount) {
   /* warnto, warncount and donep may be null.

+ 0 - 1
lib/dpkg/parsedump.h

@@ -85,6 +85,5 @@ struct nickname {
 
 extern const struct fieldinfo fieldinfos[];
 extern const struct nickname nicknames[];
-extern const int nfields; /* = elements in fieldinfos, including the sentinels */
 
 #endif /* LIBDPKG_PARSEDUMP_H */