Skip to content

Commit

Permalink
feat: remote extra code for internal/utils
Browse files Browse the repository at this point in the history
Closes apache#369
  • Loading branch information
xujianhai666 committed Jan 5, 2020
1 parent 7f7a35d commit 3bb33bb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 351 deletions.
200 changes: 0 additions & 200 deletions internal/utils/ring_buffer.go

This file was deleted.

121 changes: 0 additions & 121 deletions internal/utils/ring_buffer_test.go

This file was deleted.

12 changes: 0 additions & 12 deletions internal/utils/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ limitations under the License.

package utils

import (
"fmt"
)

// HashString hashes a string to a unique hashcode.
func HashString(s string) int {
val := []byte(s)
Expand All @@ -32,11 +28,3 @@ func HashString(s string) int {

return int(h)
}

func StrJoin(str, key string, value interface{}) string {
if key == "" || value == "" {
return str
}

return str + key + ": " + fmt.Sprint(value) + ", "
}
18 changes: 0 additions & 18 deletions internal/utils/string_test.go

This file was deleted.

0 comments on commit 3bb33bb

Please sign in to comment.