Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topo: Clean up unused code #15515

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions go/vt/topo/consultopo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ package consultopo

import (
"fmt"

"vitess.io/vitess/go/vt/topo"
)

// ConsulVersion is consul's idea of a version.
Expand All @@ -31,13 +29,3 @@ type ConsulVersion uint64
func (v ConsulVersion) String() string {
return fmt.Sprintf("%v", uint64(v))
}

// VersionFromInt is used by old-style functions to create a proper
// Version: if version is -1, returns nil. Otherwise returns the
// ConsulVersion object.
func VersionFromInt(version int64) topo.Version {
if version == -1 {
return nil
}
return ConsulVersion(version)
}
12 changes: 0 additions & 12 deletions go/vt/topo/etcd2topo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ package etcd2topo

import (
"fmt"

"vitess.io/vitess/go/vt/topo"
)

// EtcdVersion is etcd's idea of a version.
Expand All @@ -31,13 +29,3 @@ type EtcdVersion int64
func (v EtcdVersion) String() string {
return fmt.Sprintf("%v", int64(v))
}

// VersionFromInt is used by old-style functions to create a proper
// Version: if version is -1, returns nil. Otherwise returns the
// EtcdVersion object.
func VersionFromInt(version int64) topo.Version {
if version == -1 {
return nil
}
return EtcdVersion(version)
}
250 changes: 0 additions & 250 deletions go/vt/topo/helpers/tee.go

This file was deleted.

72 changes: 0 additions & 72 deletions go/vt/topo/helpers/tee_test.go

This file was deleted.

Loading
Loading