Commit 830f424c authored by Umang Parmar's avatar Umang Parmar Committed by Daniel Theophanes

database/sql: remove commented debug prints

Fixes #28234

Change-Id: I89090ffb8285c4936b0c9b5c2475849c0643186a
GitHub-Last-Rev: 4dd0ec162d0ce1548045d4119fd3295570f65d85
GitHub-Pull-Request: golang/go#28246
Reviewed-on: https://go-review.googlesource.com/c/142877Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 398b54df
...@@ -567,7 +567,6 @@ type finalCloser interface { ...@@ -567,7 +567,6 @@ type finalCloser interface {
// addDep notes that x now depends on dep, and x's finalClose won't be // addDep notes that x now depends on dep, and x's finalClose won't be
// called until all of x's dependencies are removed with removeDep. // called until all of x's dependencies are removed with removeDep.
func (db *DB) addDep(x finalCloser, dep interface{}) { func (db *DB) addDep(x finalCloser, dep interface{}) {
//println(fmt.Sprintf("addDep(%T %p, %T %p)", x, x, dep, dep))
db.mu.Lock() db.mu.Lock()
defer db.mu.Unlock() defer db.mu.Unlock()
db.addDepLocked(x, dep) db.addDepLocked(x, dep)
...@@ -597,7 +596,6 @@ func (db *DB) removeDep(x finalCloser, dep interface{}) error { ...@@ -597,7 +596,6 @@ func (db *DB) removeDep(x finalCloser, dep interface{}) error {
} }
func (db *DB) removeDepLocked(x finalCloser, dep interface{}) func() error { func (db *DB) removeDepLocked(x finalCloser, dep interface{}) func() error {
//println(fmt.Sprintf("removeDep(%T %p, %T %p)", x, x, dep, dep))
xdep, ok := db.dep[x] xdep, ok := db.dep[x]
if !ok { if !ok {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment