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