aboutsummaryrefslogtreecommitdiff
path: root/object/stored/blob.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-19 15:13:44 +0000
committerGravatar Runxi Yu2026-03-19 15:20:02 +0000
commit1a8842b33d6d83d1754267e087fd7b4f73ca9e91 (patch)
tree02149613c4caa929b959f930985c8ff8ff421a07 /object/stored/blob.go
parentTODO: Updates on receive-pack and error handling (diff)
object/stored: Use generics
Diffstat (limited to 'object/stored/blob.go')
-rw-r--r--object/stored/blob.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/object/stored/blob.go b/object/stored/blob.go
deleted file mode 100644
index 4b3b6b74..00000000
--- a/object/stored/blob.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package stored
-
-import (
- "codeberg.org/lindenii/furgit/object"
- "codeberg.org/lindenii/furgit/objectid"
-)
-
-// StoredBlob is a parsed blob paired with its storage ID.
-//
-// This Blob object is fully materialized in memory.
-// Consider using objectstore/Store.ReadReaderContent.
-type StoredBlob struct {
- id objectid.ObjectID
- blob *object.Blob
-}
-
-// NewStoredBlob creates one stored blob wrapper.
-func NewStoredBlob(id objectid.ObjectID, blob *object.Blob) *StoredBlob {
- return &StoredBlob{id: id, blob: blob}
-}
-
-// ID returns the object ID this blob was loaded from.
-func (stored *StoredBlob) ID() objectid.ObjectID {
- return stored.id
-}
-
-// Object returns the parsed blob as the generic object interface.
-func (stored *StoredBlob) Object() object.Object {
- return stored.blob
-}
-
-// Blob returns the parsed blob value.
-func (stored *StoredBlob) Blob() *object.Blob {
- return stored.blob
-}