~edwargix/tallyard

d15efeef8fbaaf8acad57df16e389cc53351b381 — David Florness 4 years ago b7c4255
Don't need this function
1 files changed, 0 insertions(+), 12 deletions(-)

M election/map.go
M election/map.go => election/map.go +0 -12
@@ 87,18 87,6 @@ func (em *ElectionsMap) UnmarshalJSON(b []byte) error {
	return nil
}

func (em *ElectionsMap) SetSave(save func ()) {
	em.Lock()
	defer em.Unlock()
	em.Save = save
	// ensure old elections have Save set
	for _, el := range em.M {
		el.Lock()
		el.Save = save
		el.Unlock()
	}
}

func (em *ElectionsMap) Get(createEventID id.EventID) *Election {
	em.RLock()
	defer em.RUnlock()