Remove unused variable.
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 13 Nov 2009 05:57:34 +0000 (05:57 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 13 Nov 2009 05:57:34 +0000 (05:57 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@299 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/pkg_dest.c
libopkg/pkg_dest.h

index 2adaf62eae6acd7fcabb18a0e5164abbc745a1c8..083f97c9140e819a678ee6d03b7cd3cfbf66138c 100644 (file)
@@ -56,8 +56,6 @@ int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const
     sprintf_alloc(&dest->status_file_name, "%s/%s",
                  dest->opkg_dir, OPKG_STATUS_FILE_SUFFIX);
 
-    dest->status_file = NULL;
-
     return 0;
 }
 
@@ -81,10 +79,5 @@ void pkg_dest_deinit(pkg_dest_t *dest)
     free(dest->status_file_name);
     dest->status_file_name = NULL;
 
-    if (dest->status_file) {
-       fclose(dest->status_file);
-    }
-    dest->status_file = NULL;
-
     dest->root_dir = NULL;
 }
index 0966a9cc012547ffac0a6b9eec0745858b958951..b29066472a3179c0b59f64a28e333c887a2b5b5e 100644 (file)
@@ -29,7 +29,6 @@ struct pkg_dest
     char *lists_dir;
     char *info_dir;
     char *status_file_name;
-    FILE *status_file;
 };
 
 int pkg_dest_init(pkg_dest_t *dest, const char *name, const char *root_dir,const char *lists_dir);