Skip to content

Commit

Permalink
Merge pull request #58971 from deads2k/client-01-prefix
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 58955, 58968, 58971, 58963, 58298). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

remove dead prefix field

The `Prefix` field was never used.
  • Loading branch information
Kubernetes Submit Queue committed Jan 29, 2018
2 parents d8f32b2 + e7b6d77 commit 946b1f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions staging/src/k8s.io/client-go/rest/config.go
Expand Up @@ -54,9 +54,6 @@ type Config struct {
Host string
// APIPath is a sub-path that points to an API root.
APIPath string
// Prefix is the sub path of the server. If not specified, the client will set
// a default value. Use "/" to indicate the server root should be used
Prefix string

// ContentConfig contains settings that affect how objects are transformed when
// sent to the server.
Expand Down Expand Up @@ -401,7 +398,6 @@ func AnonymousClientConfig(config *Config) *Config {
return &Config{
Host: config.Host,
APIPath: config.APIPath,
Prefix: config.Prefix,
ContentConfig: config.ContentConfig,
TLSClientConfig: TLSClientConfig{
Insecure: config.Insecure,
Expand All @@ -425,7 +421,6 @@ func CopyConfig(config *Config) *Config {
return &Config{
Host: config.Host,
APIPath: config.APIPath,
Prefix: config.Prefix,
ContentConfig: config.ContentConfig,
Username: config.Username,
Password: config.Password,
Expand Down

0 comments on commit 946b1f0

Please sign in to comment.