From 209af758b64d586e1c0aec3ad2eb4b56740aeddf Mon Sep 17 00:00:00 2001 From: JP Appel Date: Mon, 28 Jul 2025 23:40:23 -0400 Subject: Resolve multiple todos --- pkg/query/compiler.go | 2 -- pkg/query/outputs.go | 2 -- pkg/query/parser.go | 1 - 3 files changed, 5 deletions(-) (limited to 'pkg/query') diff --git a/pkg/query/compiler.go b/pkg/query/compiler.go index 0637fea..8b71124 100644 --- a/pkg/query/compiler.go +++ b/pkg/query/compiler.go @@ -34,8 +34,6 @@ func (s Statements) buildCompile(b *strings.Builder, delim string) ([]any, error sCount := 0 for cat, catStmts := range s.CategoryPartition() { - // TODO: make sure sorted - // TODO: loop over partitions if len(catStmts) == 0 { continue } diff --git a/pkg/query/outputs.go b/pkg/query/outputs.go index d1e70e8..e3555c1 100644 --- a/pkg/query/outputs.go +++ b/pkg/query/outputs.go @@ -15,7 +15,6 @@ const DefaultOutputFormat string = "%p %T %d authors:%a tags:%t" type OutputToken uint64 -// TODO: support long token names const ( OUT_TOK_STR OutputToken = iota OUT_TOK_PATH // %p %path @@ -28,7 +27,6 @@ const ( OUT_TOK_META // %m %meta ) -// TODO: change interface to use byte slices type Outputer interface { OutputOne(doc *index.Document) (string, error) OutputOneTo(w io.Writer, doc *index.Document) (int, error) diff --git a/pkg/query/parser.go b/pkg/query/parser.go index ce4ee7b..5ff8175 100644 --- a/pkg/query/parser.go +++ b/pkg/query/parser.go @@ -70,7 +70,6 @@ const ( VAL_DATETIME ) -// TODO: rename type Valuer interface { Type() valuerType Compare(Valuer) int -- cgit v1.2.3