From fdc52f0b330e33a10c043c93a475c984d991c97b Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Tue, 10 Dec 2024 21:42:15 +0000 Subject: [PATCH] Remove unused constructors --- private/bufpkg/bufplugin/plugin.go | 36 ------------------------------ 1 file changed, 36 deletions(-) diff --git a/private/bufpkg/bufplugin/plugin.go b/private/bufpkg/bufplugin/plugin.go index 570e8fc2b8..6f34279731 100644 --- a/private/bufpkg/bufplugin/plugin.go +++ b/private/bufpkg/bufplugin/plugin.go @@ -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, @@ -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 {