Skip to content

Commit 932a8c1

Browse files
committed
generate: NewFromSpec() remove deprecated comment
The recommended replacement does not work because other code paths expect an initialized envCacheMap. Fixes #720 Signed-off-by: Paul Holzinger <[email protected]>
1 parent 0105384 commit 932a8c1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

generate/generate.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@ func New(os string) (generator Generator, err error) {
249249

250250
// NewFromSpec creates a configuration Generator from a given
251251
// configuration.
252-
//
253-
// Deprecated: Replace with:
254-
//
255-
// generator := Generator{Config: config}
256252
func NewFromSpec(config *rspec.Spec) Generator {
257253
envCache := map[string]int{}
258254
if config != nil && config.Process != nil {

0 commit comments

Comments
 (0)