Explorar o código

dselect: Remove unused readwrite variable

Missed in commit 127ffc452f3d438be51f368c33ce3983874029ec.
Guillem Jover %!s(int64=14) %!d(string=hai) anos
pai
achega
17629f3ce9
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      dselect/main.cc

+ 3 - 3
dselect/main.cc

@@ -4,6 +4,7 @@
  *
  * Copyright © 1994-1996 Ian Jackson <ian@chiark.greenend.org.uk>
  * Copyright © 2000,2001 Wichert Akkerman <wakkerma@debian.org>
+ * Copyright © 2006-2012 Guillem Jover <guillem@debian.org>
  *
  * This is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -62,7 +63,6 @@
 
 static const char printforhelp[] = N_("Type dselect --help for help.");
 
-modstatdb_rw readwrite;
 int expertmode= 0;
 
 static const char *admindir = ADMINDIR;
@@ -360,8 +360,8 @@ extern void operator delete(void *p) {
 urqresult urq_list(void) {
   struct dpkg_arch *arch;
 
-  readwrite = modstatdb_open((modstatdb_rw)(msdbrw_writeifposs |
-                                            msdbrw_available_readonly));
+  modstatdb_open((modstatdb_rw)(msdbrw_writeifposs |
+                                msdbrw_available_readonly));
 
   // XXX: Multi-Arch is not supported, bail out.
   for (arch = dpkg_arch_get_list(); arch; arch = arch->next)