From a65b12cab12eb55a0f21d2a21a63d9c9d6d13efa Mon Sep 17 00:00:00 2001 From: Shahzad Lone Date: Tue, 23 Jan 2024 04:56:43 -0500 Subject: [PATCH] PR: Seems like dead code in `addSchema` func --- db/schema.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/db/schema.go b/db/schema.go index 988aea5e17..5aaac38b1c 100644 --- a/db/schema.go +++ b/db/schema.go @@ -39,16 +39,6 @@ func (db *db) addSchema( txn datastore.Txn, schemaString string, ) ([]client.CollectionDescription, error) { - existingCollections, err := db.getAllCollections(ctx, txn) - if err != nil { - return nil, err - } - - existingDefinitions := make([]client.CollectionDefinition, len(existingCollections)) - for i := range existingCollections { - existingDefinitions[i] = existingCollections[i].Definition() - } - newDefinitions, err := db.parser.ParseSDL(ctx, schemaString) if err != nil { return nil, err