aboutsummaryrefslogtreecommitdiffstats
path: root/kube2msb/src/vendor/github.com/ugorji/go/codec/helper_not_unsafe.go
diff options
context:
space:
mode:
Diffstat (limited to 'kube2msb/src/vendor/github.com/ugorji/go/codec/helper_not_unsafe.go')
-rw-r--r--kube2msb/src/vendor/github.com/ugorji/go/codec/helper_not_unsafe.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/kube2msb/src/vendor/github.com/ugorji/go/codec/helper_not_unsafe.go b/kube2msb/src/vendor/github.com/ugorji/go/codec/helper_not_unsafe.go
deleted file mode 100644
index 7c2ffc0..0000000
--- a/kube2msb/src/vendor/github.com/ugorji/go/codec/helper_not_unsafe.go
+++ /dev/null
@@ -1,20 +0,0 @@
-//+build !unsafe
-
-// Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
-// Use of this source code is governed by a MIT license found in the LICENSE file.
-
-package codec
-
-// stringView returns a view of the []byte as a string.
-// In unsafe mode, it doesn't incur allocation and copying caused by conversion.
-// In regular safe mode, it is an allocation and copy.
-func stringView(v []byte) string {
- return string(v)
-}
-
-// bytesView returns a view of the string as a []byte.
-// In unsafe mode, it doesn't incur allocation and copying caused by conversion.
-// In regular safe mode, it is an allocation and copy.
-func bytesView(v string) []byte {
- return []byte(v)
-}