Skip to content

Commit

Permalink
refactor(stdlib): remove deprecated versions of fill and schema mutat…
Browse files Browse the repository at this point in the history
…ions

These are now the default versions and the deprecated versions are now
deleted.
  • Loading branch information
jsternberg committed Jan 28, 2021
1 parent f80035c commit ad01cdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 121 deletions.
4 changes: 2 additions & 2 deletions stdlib/universe/fill.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func init() {

runtime.RegisterPackageValue("universe", FillKind, flux.MustValue(flux.FunctionValue(FillKind, createFillOpSpec, fillSignature)))
flux.RegisterOpSpec(FillKind, newFillOp)
plan.RegisterProcedureSpec(FillKind, newDualImplSpec(newFillProcedure), FillKind)
execute.RegisterTransformation(FillKind, createDualImplTf(createFillTransformation, createDeprecatedFillTransformation))
plan.RegisterProcedureSpec(FillKind, newFillProcedure, FillKind)
execute.RegisterTransformation(FillKind, createFillTransformation)
}

func createFillOpSpec(args flux.Arguments, a *flux.Administration) (flux.OperationSpec, error) {
Expand Down
117 changes: 0 additions & 117 deletions stdlib/universe/fill_deprecated.go

This file was deleted.

4 changes: 2 additions & 2 deletions stdlib/universe/schema_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func init() {
r.Register()
}

plan.RegisterProcedureSpec(SchemaMutationKind, newDualImplSpec(newSchemaMutationProcedure), SchemaMutationOps...)
execute.RegisterTransformation(SchemaMutationKind, createDualImplTf(createSchemaMutationTransformation, createDeprecatedSchemaMutationTransformation))
plan.RegisterProcedureSpec(SchemaMutationKind, newSchemaMutationProcedure, SchemaMutationOps...)
execute.RegisterTransformation(SchemaMutationKind, createSchemaMutationTransformation)
}

func createRenameOpSpec(args flux.Arguments, a *flux.Administration) (flux.OperationSpec, error) {
Expand Down

0 comments on commit ad01cdd

Please sign in to comment.