Skip to content

Commit 4368f2a

Browse files
committed
Remove unused fn FileBinlogCoordinates.FileSmallerThan
1 parent 2f16c37 commit 4368f2a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

go/mysql/binlog_file.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,6 @@ func (this *FileBinlogCoordinates) SmallerThanOrEquals(other BinlogCoordinates)
9999
return this.LogFile == coord.LogFile && this.LogPos == coord.LogPos // No Type comparison
100100
}
101101

102-
// FileSmallerThan returns true if this coordinate's file is strictly smaller than the other's.
103-
func (this *FileBinlogCoordinates) FileSmallerThan(other BinlogCoordinates) bool {
104-
coord, ok := other.(*FileBinlogCoordinates)
105-
if !ok || other == nil {
106-
return false
107-
}
108-
return this.LogFile < coord.LogFile
109-
}
110-
111102
// FileNumberDistance returns the numeric distance between this coordinate's file number and the other's.
112103
// Effectively it means "how many rotates/FLUSHes would make these coordinates's file reach the other's"
113104
func (this *FileBinlogCoordinates) FileNumberDistance(other *FileBinlogCoordinates) int {

0 commit comments

Comments
 (0)