aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/optimizer.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/query/optimizer.go')
-rw-r--r--pkg/query/optimizer.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/query/optimizer.go b/pkg/query/optimizer.go
index cdb2455..3c435e8 100644
--- a/pkg/query/optimizer.go
+++ b/pkg/query/optimizer.go
@@ -1,8 +1,6 @@
package query
import (
- "fmt"
- "os"
"slices"
"strings"
"sync"
@@ -458,11 +456,9 @@ func (o *Optimizer) Tighten() {
for j, s2 := range util.FilterIter(stmts[i+1:], func(s Statement) bool { return s.Operator == OP_AP }) {
val2 := strings.ToLower(s2.Value.(StringValue).S)
if strings.Contains(val2, val1) {
- fmt.Fprintf(os.Stderr, "%s > %s\nRemoving %s\n", val2, val1, val2)
// NOTE: slicing stmts offsets the all indices by 1, hence the correction
removals[j+1] = true
} else if strings.Contains(val1, val2) {
- fmt.Fprintf(os.Stderr, "%s > %s\nRemoving %s\n", val1, val2, val1)
removals[i] = true
}
}