Remove unused code

This commit is contained in:
Adnan Maolood 2021-04-12 00:49:58 -04:00
parent d9b5dcb679
commit c557a2e020
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
}
// Format represents an output format.
type Format interface {
Format(*Page) (path string, content []byte)
}
// write writes the Dir to the provided destination path.
func (d *Dir) write(dstDir string, format Format) error {
// 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)
}