From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0F02D1F91E; Sat, 27 Jun 2020 10:04:04 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: "Eric W . Biederman" Subject: [PATCH 20/34] imaptracker: drop {dbname} field Date: Sat, 27 Jun 2020 10:03:46 +0000 Message-Id: <20200627100400.9871-21-e@yhbt.net> In-Reply-To: <20200627100400.9871-1-e@yhbt.net> References: <20200627100400.9871-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 --- lib/PublicInbox/IMAPTracker.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/PublicInbox/IMAPTracker.pm b/lib/PublicInbox/IMAPTracker.pm index 26274568b9c..0bbabe07fae 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;