about summary refs log tree commit homepage
path: root/lib/PublicInbox/Msgmap.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r--lib/PublicInbox/Msgmap.pm18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm
index 6e758c1a..192e311a 100644
--- a/lib/PublicInbox/Msgmap.pm
+++ b/lib/PublicInbox/Msgmap.pm
@@ -36,7 +36,6 @@ sub dbh_new {
                 ReadOnly => !$writable,
                 sqlite_use_immediate_transaction => 1,
         });
-        $dbh->do('PRAGMA case_sensitive_like = ON');
         $dbh;
 }
 
@@ -151,23 +150,6 @@ sub minmax {
         ($min, $sth->fetchrow_array);
 }
 
-sub mid_prefixes {
-        my ($self, $pfx, $limit) = @_;
-
-        die "No prefix given" unless (defined $pfx && $pfx ne '');
-        $pfx =~ s/([%_])/\\$1/g;
-        $pfx .= '%';
-
-        $limit ||= 100;
-        $limit += 0; # force to integer
-        $limit ||= 100;
-
-        $self->{dbh}->selectcol_arrayref('SELECT mid FROM msgmap ' .
-                                         'WHERE mid LIKE ? ESCAPE ? ' .
-                                         "ORDER BY num DESC LIMIT $limit",
-                                         undef, $pfx, '\\');
-}
-
 sub mid_delete {
         my ($self, $mid) = @_;
         my $dbh = $self->{dbh};