Skip to content

Commit 6bd328c

Browse files
committed
resources: Remove unused interface
1 parent 766a2e7 commit 6bd328c

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

hugolib/hugo_sites_build.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ func (h *HugoSites) processPartialFileEvents(ctx context.Context, l logg.LevelLo
905905
handleChange := func(pathInfo *paths.Path, delete, isDir bool) {
906906
switch pathInfo.Component() {
907907
case files.ComponentFolderContent:
908+
logger.Println("Source changed", pathInfo.Path())
908909
isContentDataFile := pathInfo.IsContentData()
909910
if !isContentDataFile {
910911
if ids := h.pageTrees.collectAndMarkStaleIdentities(pathInfo); len(ids) > 0 {

hugolib/page.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,6 @@ func (p *pageState) renderResources() error {
535535
continue
536536
}
537537

538-
if _, isWrapper := r.(resource.ResourceWrapper); isWrapper {
539-
// Skip resources that are wrapped.
540-
// These gets published on its own.
541-
continue
542-
}
543-
544538
src, ok := r.(resource.Source)
545539
if !ok {
546540
return fmt.Errorf("resource %T does not support resource.Source", r)

resources/resource/resourcetypes.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ type ResourceWithoutMeta interface {
8181
ResourceDataProvider
8282
}
8383

84-
type ResourceWrapper interface {
85-
UnwrappedResource() Resource
86-
WrapResource(Resource) ResourceWrapper
87-
}
88-
8984
type ResourceTypeProvider interface {
9085
// ResourceType is the resource type. For most file types, this is the main
9186
// part of the MIME type, e.g. "image", "application", "text" etc.

0 commit comments

Comments
 (0)