summaryrefslogtreecommitdiff
path: root/generateFind.go
diff options
context:
space:
mode:
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