Skip to content

Commit bb8f767

Browse files
committed
tfsdk: Remove NewProtocol6Server() function
Reference: #294
1 parent 04be243 commit bb8f767

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.changelog/pending.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:breaking-change
2+
tfsdk: The `NewProtocol6Server()` function has been removed. Use `NewProtocol6ProviderServer()` or `NewProtocol6ProviderServerWithError()` instead.
3+
```

tfsdk/serve.go

-11
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ type ServeOpts struct {
3636
Debug bool
3737
}
3838

39-
// NewProtocol6Server returns a tfprotov6.ProviderServer implementation based
40-
// on the passed Provider implementation.
41-
//
42-
// Deprecated: Use NewProtocol6ProviderServer instead. This will be removed
43-
// in an upcoming minor version before v1.0.0.
44-
func NewProtocol6Server(p Provider) tfprotov6.ProviderServer {
45-
return &server{
46-
p: p,
47-
}
48-
}
49-
5039
// Returns a protocol version 6 ProviderServer implementation based on the
5140
// given Provider and suitable for usage with the terraform-plugin-go
5241
// tf6server.Serve() function and various terraform-plugin-mux functions.

0 commit comments

Comments
 (0)