diff --git a/CLEANUP.md b/CLEANUP.md index 2254e00f..e331ec58 100644 --- a/CLEANUP.md +++ b/CLEANUP.md @@ -236,9 +236,7 @@ Verify that all code references use the external package, not a local path. ## 10. Old Generated Files & Artifacts -### 10a. `query.go` at project root - -Contains a commented-out Bob query interface and an unused `QueryWriter` interface. The `insertQueryToString` function is entirely commented out. Either repurpose or remove. +### 10a. `query.go` at project root — Removed ✅ ### 10b. `db/sql/` directory @@ -287,7 +285,7 @@ Empty placeholder file. Remove. - ~~Remove `tomtom/` (unused, no imports)~~ ✅ - ~~Remove `build.js` (dead, replaced by Vite)~~ ✅ - Remove commented-out routes in `sync/routes.go` and `rmo/routes.go` - - Remove `query.go` commented-out code + - ~~Remove `query.go` commented-out code~~ ✅ - Remove `static/gen/main.js` stale artifact - Remove `static/css/placeholder` diff --git a/query.go b/query.go deleted file mode 100644 index 0b50022e..00000000 --- a/query.go +++ /dev/null @@ -1,34 +0,0 @@ -package main - -import ( - "bytes" - "context" - "fmt" - "io" - //"github.com/Gleipnir-Technology/bob" - //"github.com/Gleipnir-Technology/bob/dialect/psql" -) - -type QueryWriter interface { - WriteQuery(ctx context.Context, w io.Writer, start int) ([]any, error) -} - -func queryToString(query QueryWriter) string { - buf := new(bytes.Buffer) - _, err := query.WriteQuery(context.TODO(), buf, 0) - if err != nil { - return fmt.Sprintf("Failed to write query to buffer: %v", err) - } - return buf.String() -} - -/* -func insertQueryToString(query bob.BaseQuery[*dialect.InsertQuery]) string { - buf := new(bytes.Buffer) - _, err := query.WriteQuery(context.TODO(), buf, 0) - if err != nil { - return fmt.Sprintf("Failed to write query: %v", err) - } - return buf.String() -} -*/