diff options
Diffstat (limited to 'modules/module.go')
-rw-r--r-- | modules/module.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/modules/module.go b/modules/module.go index f71911617..a5f707635 100644 --- a/modules/module.go +++ b/modules/module.go @@ -18,7 +18,6 @@ package modules import ( "github.com/gohugoio/hugo/config" - "github.com/spf13/afero" ) var _ Module = (*moduleAdapter)(nil) @@ -173,24 +172,3 @@ func (m *moduleAdapter) Watch() bool { return false } - -func (m *moduleAdapter) validateAndApplyDefaults(fs afero.Fs) error { - - /*if len(m.modImport.Mounts) == 0 { - // Create default mount points for every component folder that - // exists in the module. - for _, componentFolder := range files.ComponentFolders { - sourceDir := filepath.Join(dir, componentFolder) - _, err := fs.Stat(sourceDir) - if err == nil { - m.modImport.Mounts = append(m.modImport.Mounts, Mount{ - Source: componentFolder, - Target: componentFolder, - }) - } - } - }*/ - - return nil - -} |