@@ -57,7 +57,6 @@ var filePathSeparator = string(filepath.Separator)
57
57
// to underline that even if they can be composites, they all have a base path set to a specific
58
58
// resource folder, e.g "/my-project/content". So, no absolute filenames needed.
59
59
type BaseFs struct {
60
-
61
60
// SourceFilesystems contains the different source file systems.
62
61
* SourceFilesystems
63
62
@@ -180,7 +179,6 @@ func (b *BaseFs) AbsProjectContentDir(filename string) (string, string, error) {
180
179
return filename , filepath .Join (meta .Filename , filename ), nil
181
180
}
182
181
}
183
-
184
182
}
185
183
186
184
return "" , "" , fmt .Errorf ("could not determine content directory for %q" , filename )
@@ -301,7 +299,6 @@ func (s SourceFilesystems) ContentStaticAssetFs(lang string) afero.Fs {
301
299
},
302
300
},
303
301
)
304
-
305
302
}
306
303
307
304
// StaticFs returns the static filesystem for the given language.
@@ -666,8 +663,8 @@ func (b *sourceFilesystemsBuilder) isStaticMount(mnt modules.Mount) bool {
666
663
667
664
func (b * sourceFilesystemsBuilder ) createOverlayFs (
668
665
collector * filesystemsCollector ,
669
- mounts []mountsDescriptor ) error {
670
-
666
+ mounts []mountsDescriptor ,
667
+ ) error {
671
668
if len (mounts ) == 0 {
672
669
appendNopIfEmpty := func (ofs * overlayfs.OverlayFs ) * overlayfs.OverlayFs {
673
670
if ofs .NumFilesystems () > 0 {
@@ -857,13 +854,6 @@ func (c *filesystemsCollector) addDir(rfs *hugofs.RootMappingFs, componentFolder
857
854
}
858
855
}
859
856
860
- func (c * filesystemsCollector ) reverseFis (fis []hugofs.FileMetaInfo ) {
861
- for i := len (fis )/ 2 - 1 ; i >= 0 ; i -- {
862
- opp := len (fis ) - 1 - i
863
- fis [i ], fis [opp ] = fis [opp ], fis [i ]
864
- }
865
- }
866
-
867
857
type mountsDescriptor struct {
868
858
modules.Module
869
859
dir string
0 commit comments