Skip to content

Commit

Permalink
Remove unused constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Dec 10, 2024
1 parent 33cccb8 commit fdc52f0
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions private/bufpkg/bufplugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,6 @@ type Plugin interface {
isPlugin()
}

// NewLocalPlugin returns a new Plugin for a local plugin.
func NewLocalPlugin(
name string,
args []string,
) (Plugin, error) {
return newPlugin(
"", // description
nil, // pluginFullName
name,
args,
uuid.Nil, // commitID
false, // isWasm
true, // isLocal
nil, // getData
)
}

// NewLocalWasmPlugin returns a new Plugin for a local Wasm plugin.
func NewLocalWasmPlugin(
fullName bufparse.FullName,
Expand All @@ -144,25 +127,6 @@ func NewLocalWasmPlugin(
)
}

// NewRemoteWasmPlugin returns a new Plugin for a remote Wasm plugin.
func NewRemoteWasmPlugin(
pluginFullName bufparse.FullName,
args []string,
commitID uuid.UUID,
getData func() ([]byte, error),
) (Plugin, error) {
return newPlugin(
"", // description
pluginFullName,
pluginFullName.String(),
args,
commitID,
true, // isWasm
false, // isLocal
getData,
)
}

// *** PRIVATE ***

type plugin struct {
Expand Down

0 comments on commit fdc52f0

Please sign in to comment.