aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/query')
-rw-r--r--pkg/query/compiler.go2
-rw-r--r--pkg/query/outputs.go2
-rw-r--r--pkg/query/parser.go1
3 files changed, 0 insertions, 5 deletions
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