]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imaptracker: drop {dbname} field
authorEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:03:46 +0000 (10:03 +0000)
committerEric Wong <e@yhbt.net>
Sun, 28 Jun 2020 22:27:22 +0000 (22:27 +0000)
It's not used anywhere since the IMAPTracker object doesn't
disconnect and reconnect.  If we ever need the filename,
{dbh}->sqlite_db_filename may be used.

Cc: Eric W. Biederman <ebiederm@xmission.com>
lib/PublicInbox/IMAPTracker.pm

index 26274568b9c00e4b6ead4e148a7036d7b93d26e3..0bbabe07faef6c76f1bc4bcd94c75eabbfd8d1ab 100644 (file)
@@ -69,8 +69,7 @@ sub new {
                File::Path::mkpath(File::Basename::dirname($dbname));
        }
 
-       my $dbh = dbh_new($dbname);
-       bless { dbname => $dbname, url => $url, dbh => $dbh }, $class;
+       bless { url => $url, dbh => dbh_new($dbname) }, $class;
 }
 
 1;