* [PATCH 3/8] searchidx: remove unused sub: next_doc_id
2015-09-25 2:27 6% [PATCH 0/8] nntp: more fixes and tiny speedups Eric Wong
@ 2015-09-25 2:27 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-09-25 2:27 UTC (permalink / raw)
To: meta
It seems like it was never used
---
lib/PublicInbox/SearchIdx.pm | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 351450c..8724326 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -175,8 +175,6 @@ sub term_generator { # write-only
$self->{term_generator} = $tg;
}
-sub next_doc_id { $_[0]->{xdb}->get_lastdocid + 1 }
-
# increments last_thread_id counter
# returns a 64-bit integer represented as a hex string
sub next_thread_id {
--
EW
^ permalink raw reply related [relevance 7%]
* [PATCH 0/8] nntp: more fixes and tiny speedups
@ 2015-09-25 2:27 6% Eric Wong
2015-09-25 2:27 7% ` [PATCH 3/8] searchidx: remove unused sub: next_doc_id Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2015-09-25 2:27 UTC (permalink / raw)
To: meta
Still trying my best to avoid introducing more metadata or Xapian
index overhead to support OVER/XOVER, but it seems futile at this
point.
Eric Wong (8):
nntp: HDR allows metadata prefixed with ':'
nntp: consistently use 501 for unsupported LIST
searchidx: remove unused sub: next_doc_id
nntp: do not repeat result on blocked write
nntp: prefix FD on every log line
git: signal-safety for pipe writes
git: use fields for GitCatFile
nntp: avoid signals for long responses
lib/PublicInbox/GitCatFile.pm | 17 +++++++----------
lib/PublicInbox/NNTP.pm | 30 ++++++++++++++----------------
lib/PublicInbox/SearchIdx.pm | 2 --
3 files changed, 21 insertions(+), 28 deletions(-)
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-09-25 2:27 6% [PATCH 0/8] nntp: more fixes and tiny speedups Eric Wong
2015-09-25 2:27 7% ` [PATCH 3/8] searchidx: remove unused sub: next_doc_id Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).