Skip to content

Commit

Permalink
topo: Clean up unused code (#15515)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
  • Loading branch information
dbussink committed Mar 19, 2024
1 parent 5f6be83 commit 01752b7
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 530 deletions.
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

0 comments on commit 01752b7

Please sign in to comment.