From 93b9dc3fd96e1c0e62f03d9346303deaa4522a16 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 5 Aug 2023 03:17:37 +0200 Subject: [PATCH] remove dead code --- sync.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sync.go b/sync.go index ef71f693..433c3538 100644 --- a/sync.go +++ b/sync.go @@ -235,15 +235,6 @@ func (session *Session) SyncWithOptions(opts SyncOptions, beans ...interface{}) } } - if oriIndex != nil && oriIndex.Type != index.Type { // is never true !!! because then check "index.Equal(index2)" in L238 would fail !!! - sql := engine.dialect.DropIndexSQL(tbNameWithSchema, oriIndex) - _, err = session.exec(sql) - if err != nil { - return nil, err - } - oriIndex = nil - } - if oriIndex == nil { addedNames[name] = index }