Remove `count.CreateArchives` func since we never want to call that from anything other than CLI anyway.

This commit is contained in:
Danny van Kooten 2016-12-24 10:00:16 +02:00
parent f436d87d95
commit 84bc9e6e99
2 changed files with 7 additions and 11 deletions

View File

@ -10,5 +10,11 @@ func seedData() {
}
func archiveData() {
count.CreateArchives()
count.CreatePageviewArchives()
count.CreateVisitorArchives()
count.CreatePageviewArchivesPerPage()
count.CreateScreenArchives()
count.CreateLanguageArchives()
count.CreateBrowserArchives()
count.CreateReferrerArchives()
}

View File

@ -48,16 +48,6 @@ func (a *Archive) Save(Conn *sql.DB) error {
return err
}
// CreateArchives calls all archive creation func's consecutively
func CreateArchives() {
CreatePageviewArchives()
CreateVisitorArchives()
CreatePageviewArchivesPerPage()
CreateScreenArchives()
CreateLanguageArchives()
CreateBrowserArchives()
}
func checkError(err error) {
if err != nil {
log.Fatal(err)