aboutsummaryrefslogtreecommitdiffstats
path: root/core/memory.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-14 12:30:19 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-14 12:30:19 +0200
commit91bf16b2336e6f80f0742be729582fe5fbbada83 (patch)
tree935a95f72e824543970c8254c39cf0afa22b3410 /core/memory.go
parentf826cf9d42cc34e2ae5aaf6ede892ecab9d2f198 (diff)
downloadgo-git-91bf16b2336e6f80f0742be729582fe5fbbada83.tar.gz
core: removing Object.Content, the Reader should be used always
Diffstat (limited to 'core/memory.go')
-rw-r--r--core/memory.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/memory.go b/core/memory.go
index e3063d6..3d8063d 100644
--- a/core/memory.go
+++ b/core/memory.go
@@ -38,9 +38,6 @@ func (o *MemoryObject) Size() int64 { return o.sz }
// afterwards
func (o *MemoryObject) SetSize(s int64) { o.sz = s }
-// Content returns the contents of the object
-func (o *MemoryObject) Content() []byte { return o.cont }
-
// Reader returns a ObjectReader used to read the object's content.
func (o *MemoryObject) Reader() (ObjectReader, error) {
return ioutil.NopCloser(bytes.NewBuffer(o.cont)), nil