Sfoglia il codice sorgente

Remove deprecated functions.

Mariano Cano 5 anni fa
parent
commit
81004ce1f9
1 ha cambiato i file con 0 aggiunte e 25 eliminazioni
  1. 0 25
      pki/pki.go

+ 0 - 25
pki/pki.go

@@ -596,31 +596,6 @@ type caDefaults struct {
 // Option is the type for modifiers over the auth config object.
 // Option is the type for modifiers over the auth config object.
 type Option func(c *authconfig.Config) error
 type Option func(c *authconfig.Config) error
 
 
-// WithDefaultDB is a configuration modifier that adds a default DB stanza to
-// the authority config.
-//
-// Deprecated: this method is deprecated because this is the default behavior.
-func WithDefaultDB() Option {
-	return func(c *authconfig.Config) error {
-		c.DB = &db.Config{
-			Type:       "badger",
-			DataSource: GetDBPath(),
-		}
-		return nil
-	}
-}
-
-// WithoutDB is a configuration modifier that adds a default DB stanza to
-// the authority config.
-//
-// De[recated: this method is deprecated in favor or WithNoDB.
-func WithoutDB() Option {
-	return func(c *authconfig.Config) error {
-		c.DB = nil
-		return nil
-	}
-}
-
 // GenerateConfig returns the step certificates configuration.
 // GenerateConfig returns the step certificates configuration.
 func (p *PKI) GenerateConfig(opt ...Option) (*authconfig.Config, error) {
 func (p *PKI) GenerateConfig(opt ...Option) (*authconfig.Config, error) {
 	var authorityOptions *apiv1.Options
 	var authorityOptions *apiv1.Options