resources: Remove unused interface - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 6bd328c58486f7388888c1a53854607922a24c16
DIR parent 766a2e7868454225b176468ee7df412a7373324e
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Wed, 28 May 2025 11:57:36 +0200
resources: Remove unused interface
Diffstat:
M hugolib/hugo_sites_build.go | 1 +
M hugolib/page.go | 6 ------
M resources/resource/resourcetypes.go | 5 -----
3 files changed, 1 insertion(+), 11 deletions(-)
---
DIR diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
@@ -905,6 +905,7 @@ func (h *HugoSites) processPartialFileEvents(ctx context.Context, l logg.LevelLo
handleChange := func(pathInfo *paths.Path, delete, isDir bool) {
switch pathInfo.Component() {
case files.ComponentFolderContent:
+ logger.Println("Source changed", pathInfo.Path())
isContentDataFile := pathInfo.IsContentData()
if !isContentDataFile {
if ids := h.pageTrees.collectAndMarkStaleIdentities(pathInfo); len(ids) > 0 {
DIR diff --git a/hugolib/page.go b/hugolib/page.go
@@ -535,12 +535,6 @@ func (p *pageState) renderResources() error {
continue
}
- if _, isWrapper := r.(resource.ResourceWrapper); isWrapper {
- // Skip resources that are wrapped.
- // These gets published on its own.
- continue
- }
-
src, ok := r.(resource.Source)
if !ok {
return fmt.Errorf("resource %T does not support resource.Source", r)
DIR diff --git a/resources/resource/resourcetypes.go b/resources/resource/resourcetypes.go
@@ -81,11 +81,6 @@ type ResourceWithoutMeta interface {
ResourceDataProvider
}
-type ResourceWrapper interface {
- UnwrappedResource() Resource
- WrapResource(Resource) ResourceWrapper
-}
-
type ResourceTypeProvider interface {
// ResourceType is the resource type. For most file types, this is the main
// part of the MIME type, e.g. "image", "application", "text" etc.