Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove ShowPlan
It is out of sync with reality, has some disabled tests, and the cost
of getting it up-to-date is too high to be worth it.
  • Loading branch information
bep committed Nov 23, 2016
1 parent a6d584b commit ff2498e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 249 deletions.
21 changes: 1 addition & 20 deletions commands/check.go
Expand Up @@ -19,24 +19,5 @@ import (

var checkCmd = &cobra.Command{
Use: "check",
Short: "Check content in the source directory",
Long: `Hugo will perform some basic analysis on the content provided
and will give feedback.`,
}

func init() {
initHugoBuilderFlags(checkCmd)
checkCmd.RunE = check
}

func check(cmd *cobra.Command, args []string) error {
if err := InitializeConfig(checkCmd); err != nil {
return err
}

if err := initSites(); err != nil {
return err
}

return Hugo.Analyze()
Short: "Contains some verification checks",
}
11 changes: 0 additions & 11 deletions hugolib/hugo_sites.go
Expand Up @@ -15,7 +15,6 @@ package hugolib

import (
"fmt"
"os"
"strings"
"sync"

Expand Down Expand Up @@ -151,16 +150,6 @@ type BuildCfg struct {
whatChanged *whatChanged
}

// Analyze prints a build report to Stdout.
// Useful for debugging.
func (h *HugoSites) Analyze() error {
if err := h.Build(BuildCfg{SkipRender: true}); err != nil {
return err
}
s := h.Sites[0]
return s.ShowPlan(os.Stdout)
}

func (h *HugoSites) renderCrossSitesArtifacts() error {

if !h.multilingual.enabled() {
Expand Down
67 changes: 0 additions & 67 deletions hugolib/planner.go

This file was deleted.

151 changes: 0 additions & 151 deletions hugolib/site_show_plan_test.go

This file was deleted.

0 comments on commit ff2498e

Please sign in to comment.