summaryrefslogtreecommitdiff
path: root/pkg/payload
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/payload')
-rwxr-xr-xpkg/payload/payload.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/payload/payload.go b/pkg/payload/payload.go
index bf3972aa..1fe334eb 100755
--- a/pkg/payload/payload.go
+++ b/pkg/payload/payload.go
@@ -16,8 +16,3 @@ type Payload struct {
func (p *Payload) String() string {
return toString(p.Body)
}
-
-// unsafe, but lightning fast []byte to string conversion
-func toString(data []byte) string {
- return *(*string)(unsafe.Pointer(&data))
-}