Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Remove unused exported functions/variables #696

Merged
merged 1 commit into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 0 additions & 7 deletions internal/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
const (
// AppExtension is the extension used by an application.
AppExtension = ".dockerapp"
// ImageLabel is the label used to distinguish applications from Docker images.
ImageLabel = "com.docker.application"
// MetadataFileName is metadata file name
MetadataFileName = "metadata.yml"
// ComposeFileName is compose file name
Expand Down Expand Up @@ -80,11 +78,6 @@ const (
LabelAppVersion = Namespace + "version"
)

var (
// FileNames lists the application file names, in order.
FileNames = []string{MetadataFileName, ComposeFileName, ParametersFileName}
)

var appNameRe, _ = regexp.Compile("^[a-zA-Z][a-zA-Z0-9_-]+$")

// AppNameFromDir takes a path to an app directory and returns
Expand Down
7 changes: 0 additions & 7 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,6 @@ func WithSource(source AppSourceKind) func(*App) error {
}
}

func WithCRLF(hasCRLF bool) func(*App) error {
return func(app *App) error {
app.hasCRLF = hasCRLF
return nil
}
}

// WithParametersFiles adds the specified parameters files to the app
func WithParametersFiles(files ...string) func(*App) error {
return parametersLoader(func() ([][]byte, error) { return readFiles(files...) })
Expand Down