commands: Remove some now superflous Fast Render Mode code

Updates #4339
This commit is contained in:
Bjørn Erik Pedersen 2018-01-30 10:47:38 +01:00
parent 94e736c5e1
commit feeed073c3
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -1156,14 +1156,6 @@ func (c *commandeer) newWatcher(dirList ...string) (*watcher.Batcher, error) {
doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload") doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload")
onePageName := pickOneWriteOrCreatePath(dynamicEvents) onePageName := pickOneWriteOrCreatePath(dynamicEvents)
if onePageName != "" && doLiveReload && !c.Cfg.GetBool("disableFastRender") {
p := Hugo.GetContentPage(onePageName)
if p != nil {
c.visitedURLs.Add(p.RelPermalink())
}
}
c.Logger.FEEDBACK.Println("\nChange detected, rebuilding site") c.Logger.FEEDBACK.Println("\nChange detected, rebuilding site")
const layout = "2006-01-02 15:04:05.000 -0700" const layout = "2006-01-02 15:04:05.000 -0700"
c.Logger.FEEDBACK.Println(time.Now().Format(layout)) c.Logger.FEEDBACK.Println(time.Now().Format(layout))