Remove unused code

This commit is contained in:
adnano 2021-04-12 00:49:58 -04:00
parent bd9bb1a046
commit 27fbca53f3
2 changed files with 5 additions and 12 deletions

5
dir.go
View file

@ -139,6 +139,11 @@ func (d *Dir) manipulate(cfg *Config) error {
return nil return nil
} }
// Format represents an output format.
type Format interface {
Format(*Page) (path string, content []byte)
}
// write writes the Dir to the provided destination path. // write writes the Dir to the provided destination path.
func (d *Dir) write(dstDir string, format Format) error { func (d *Dir) write(dstDir string, format Format) error {
// Create the directory // Create the directory

View file

@ -1,12 +0,0 @@
package main
// Format represents an output format.
type Format interface {
Format(*Page) (path string, content []byte)
}
type FormatFunc func(*Page) (string, []byte)
func (f FormatFunc) Format(p *Page) (string, []byte) {
return f(p)
}