diff --git a/nested_set.go b/nested_set.go index a69e128..493ebd2 100644 --- a/nested_set.go +++ b/nested_set.go @@ -53,7 +53,6 @@ func parseNode(db *gorm.DB, source interface{}) (tx *gorm.DB, item nodeItem, err item = nodeItem{TableName: stmt.Table, DbNames: map[string]string{}} sourceType := reflect.TypeOf(source) - fmt.Printf("sourceType:%s\n", sourceType) sourceValue := reflect.Indirect(reflect.ValueOf(source)) for i := 0; i < sourceType.NumField(); i++ { t := sourceType.Field(i) diff --git a/nested_set_test.go b/nested_set_test.go index bce4e98..489d277 100644 --- a/nested_set_test.go +++ b/nested_set_test.go @@ -2,7 +2,6 @@ package nestedset import ( "database/sql" - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -189,7 +188,6 @@ func TestMoveToInner(t *testing.T) { } func assertNodeEqual(t *testing.T, target Category, left, right, depth, childrenCount int, parentID int64) { - fmt.Printf("Asserting %s(%d)\n", target.Title, target.ID) nullInt64ParentID := sql.NullInt64{Valid: false} if parentID > 0 { nullInt64ParentID = sql.NullInt64{Valid: true, Int64: parentID}