diff --git a/internal/config/config.go b/internal/config/config.go index 77a90c1..9990d7b 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -207,13 +207,6 @@ func (c Config) ensureSourceFolderAbsolutePaths() error { return nil } -func isValidAlbumGenerationMethod(method string) bool { - if method != "folderPath" && method != "folderName" { - return false - } - return true -} - // ValidateAlbumOption checks if the value is a valid Album option. func validateAlbumOption(value string, logger log.Logger) error { if value == "" { @@ -248,16 +241,6 @@ func validateTemplateOption(after string) error { return nil } -// isValidCreateAlbums checks if the value is a valid CreateAlbums option. -func isValidCreateAlbums(value string) bool { - switch value { - case "Off", "folderPath", "folderName": - return true - default: - } - return false -} - // unmarshalReader unmarshal HJSON data into the provided interface. func unmarshalReader(in io.Reader, c interface{}) error { buf := new(bytes.Buffer) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 2f46817..1bdd8d4 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -1,7 +1,6 @@ package config_test import ( - "fmt" "github.com/gphotosuploader/gphotos-uploader-cli/internal/log" "path/filepath" "testing" @@ -103,15 +102,6 @@ func TestFromFile(t *testing.T) { } } -type mockLogger struct { - log.Logger - messages []string -} - -func (m *mockLogger) Warnf(format string, args ...interface{}) { - m.messages = append(m.messages, fmt.Sprintf(format, args...)) -} - func TestConfig_SafePrint(t *testing.T) { cfg := config.Config{ APIAppCredentials: config.APIAppCredentials{