diff options
author | EuAndreh <eu@euandre.org> | 2024-10-19 17:08:39 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-19 17:08:52 -0300 |
commit | 7da1d0b82bcf507fe111da30bf7c9033afcecdfc (patch) | |
tree | 3f64ed0d78bb93725ed5819e3493925daff8c641 | |
parent | Add noop mkdeps.sh and empty deps.mk (diff) | |
download | uuid-7da1d0b82bcf507fe111da30bf7c9033afcecdfc.tar.gz uuid-7da1d0b82bcf507fe111da30bf7c9033afcecdfc.tar.xz |
src/guuid.go: Remove NewBytes()
Diffstat (limited to '')
-rw-r--r-- | src/guuid.go | 5 | ||||
-rw-r--r-- | tests/guuid.go | 15 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/guuid.go b/src/guuid.go index b8cf5fe..f4c6d7b 100644 --- a/src/guuid.go +++ b/src/guuid.go @@ -50,11 +50,6 @@ func New() UUID { return uuid } -func NewBytes() []byte { - id := New() - return id[:] -} - func (uuid UUID) String() string { dst := [encodedLength]byte { 0, 0, 0, 0, diff --git a/tests/guuid.go b/tests/guuid.go index f4d182c..786a32c 100644 --- a/tests/guuid.go +++ b/tests/guuid.go @@ -167,20 +167,6 @@ func test_New() { }) } -func test_NewBytes() { - testStart("NewBytes()") - - testing("the slice has the same length of the original array", func() { - array := New() - slice := NewBytes() - assertEq(len(slice), len(array)) - }) - - testing("we get the correct byte count", func() { - assertEq(len(NewBytes()), ByteCount) - }) -} - func test_String() { testStart("UUID.String()") @@ -257,7 +243,6 @@ func test_FromString() { func MainTest() { test_NewFrom() test_New() - test_NewBytes() test_String() test_FromString() } |