summaryrefslogtreecommitdiff
path: root/generateFind.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-12 08:28:23 -0600
committerJeff Carr <[email protected]>2025-01-12 08:28:23 -0600
commit10f75f87a66a9329fd665bd85099fe94c7beae79 (patch)
tree5746e3e18d3bdf3d8213798436ee93d0dd052772 /generateFind.go
parent721bbd8f92d80286f12509fbbcff9f2f8e334093 (diff)
add nomutex support to disable it per message struct
Diffstat (limited to 'generateFind.go')
-rw-r--r--generateFind.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/generateFind.go b/generateFind.go
index 7d8637d..a0fd743 100644
--- a/generateFind.go
+++ b/generateFind.go
@@ -7,17 +7,6 @@ import (
// generates Find() and some other stuff
-func (msg *MsgName) getLockname(s string) string {
- // leave this function stubbed in for development of autogenpb
- // if argv.Mutex {
- // // use the mutex lock from the modified protoc.pb.go file
- // return s + ".Lock"
- // // return s // causes Marshal() to panic? always use the variable name 'Lock'?
- // }
- // a single global lock by struct name
- return msg.Lockname
-}
-
func (msg *MsgName) generateFindBy(w io.Writer, FUNCNAME, STRUCT, VARNAME, VARTYPE, COLOR string) string {
LOCK := msg.getLockname("x")
funcdef := "func (x *" + STRUCT + ") " + FUNCNAME + "(s string) *" + VARTYPE