about summary refs log tree commit homepage
path: root/lib/PublicInbox/IMAPTracker.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-27 10:03:46 +0000
committerEric Wong <e@yhbt.net>2020-06-28 22:27:22 +0000
commit6e56fb09cbaec593f4ef3c2fff2140c201406b41 (patch)
tree3d94d0f686c36ee8bbba92b49518ed6ec242d0d9 /lib/PublicInbox/IMAPTracker.pm
parent5fa10d84517ffe08ac85b13961bdbd20baf3d807 (diff)
downloadpublic-inbox-6e56fb09cbaec593f4ef3c2fff2140c201406b41.tar.gz
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>
Diffstat (limited to 'lib/PublicInbox/IMAPTracker.pm')
-rw-r--r--lib/PublicInbox/IMAPTracker.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/IMAPTracker.pm b/lib/PublicInbox/IMAPTracker.pm
index 26274568..0bbabe07 100644
--- a/lib/PublicInbox/IMAPTracker.pm
+++ b/lib/PublicInbox/IMAPTracker.pm
@@ -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;