Skip to content

Commit 7a938c5

Browse files
committed
remove unnecessary public symbol
1 parent 43111cb commit 7a938c5

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

encoding.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package binarydist
22

3-
// SMLE is the numeric encoding used by the bsdiff tools.
3+
// Smle is the numeric encoding used by the bsdiff tools.
44
// It implements binary.ByteOrder using a sign-magnitude format
5-
// and little-endian byte order. Only methods Uint64, String,
6-
// and GoString have been written; the rest panic.
7-
var SMLE smle
8-
5+
// and little-endian byte order. Only methods Uint64 and String
6+
// have been written; the rest panic.
97
type smle struct{}
108

119
func (smle) Uint16(b []byte) uint16 { panic("unimplemented") }
@@ -34,6 +32,4 @@ func (smle) Uint64(b []byte) uint64 {
3432

3533
func (smle) PutUint64(b []byte, v uint64) { panic("unimplemented") }
3634

37-
func (smle) String() string { return "SMLE" }
38-
39-
func (smle) GoString() string { return "binarydist.SMLE" }
35+
func (smle) String() string { return "smle" }

patch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Patch(old io.Reader, new io.Writer, patch io.Reader) error {
3737
DiffLen int64
3838
NewSize int64
3939
}
40-
err := binary.Read(patch, SMLE, &header)
40+
err := binary.Read(patch, smle{}, &header)
4141
if err != nil {
4242
return err
4343
}
@@ -75,7 +75,7 @@ func Patch(old io.Reader, new io.Writer, patch io.Reader) error {
7575
var oldpos, newpos int64
7676
for newpos < header.NewSize {
7777
var ctrl struct{ Add, Copy, Seek int64 }
78-
err = binary.Read(cpfbz2, SMLE, &ctrl)
78+
err = binary.Read(cpfbz2, smle{}, &ctrl)
7979
if err != nil {
8080
return err
8181
}

0 commit comments

Comments
 (0)