From 387f6623558c3ecd4b31e49ddee778674e8395a6 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sat, 28 Oct 2023 08:59:22 +0200 Subject: [PATCH] DB.WriteAllDataOfBriefing wurde nicht verwendet und deshalb entfernt --- packages/data/dbFuncs.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/packages/data/dbFuncs.go b/packages/data/dbFuncs.go index 16dbbf6..34d75e7 100644 --- a/packages/data/dbFuncs.go +++ b/packages/data/dbFuncs.go @@ -82,26 +82,6 @@ func (db *DB) WriteGivenAnswer(b *Briefing, p *Participant, q *Question, g int) return nil } -func (db *DB) WriteAllDataOfBriefing(b *Briefing, sp *[]*Participant, sq *[]*Question, sg *[]*GivenAnswer) error { - if err := db.WriteBriefing(b); err != nil { - return fmt.Errorf("*DB.WriteAllDataOfBriefing: db.writeBriefing(): %v\n", err) - } - - for _, p := range *sp { - if err := db.WriteParticipant(p); err != nil { - return fmt.Errorf("*DB.WriteAllDataOfBriefing: db.writeParticipants(): %v\n", err) - } - } - - for _, p := range *sp { - for i, q := range *sq { - db.WriteGivenAnswer(b, p, q, i) - } - } - - return nil -} - func (db *DB) GetAllOverviewTableData() ([]*OverviewTableData, error) { rows, err := db.Query(` SELECT