From d75037c0ab97904084b63d0c5e2cb4164261a541 Mon Sep 17 00:00:00 2001 From: Harm Aarts Date: Thu, 5 Dec 2013 14:10:22 +0100 Subject: [PATCH] Removes notification of new channels This is going to be moved to the stateful Feed, this is yet to be implemented. --- feed.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/feed.go b/feed.go index 4a68c9a..6b9fe33 100644 --- a/feed.go +++ b/feed.go @@ -150,16 +150,10 @@ func (this *Feed) makeFeed(doc *xmlx.Document) (err error) { return } - chancount := len(this.Channels) if err = this.buildFeed(doc); err != nil || len(this.Channels) == 0 { return } - // Notify host of new channels - if chancount != len(this.Channels) && this.chanhandler != nil { - this.chanhandler(this, this.Channels[chancount:]) - } - // reset cache timeout values according to feed specified values (TTL) if this.EnforceCacheLimit && this.CacheTimeout < this.Channels[0].TTL { this.CacheTimeout = this.Channels[0].TTL