Convert NewBlob() away from using resolvedFutures

Instead, use a backing MemoryStore. This is part of removing Futures.
This commit is contained in:
Aaron Boodman
2015-10-30 12:50:56 -07:00
parent a9bc416a2f
commit c52bf0bbf5
16 changed files with 48 additions and 49 deletions
+1 -9
View File
@@ -1,10 +1,6 @@
package types
import (
"bytes"
"github.com/attic-labs/noms/ref"
)
import "github.com/attic-labs/noms/ref"
type String struct {
s string
@@ -15,10 +11,6 @@ func NewString(s string) String {
return String{s, &ref.Ref{}}
}
func (fs String) Blob() (Blob, error) {
return NewBlob(bytes.NewBufferString(fs.s))
}
func (fs String) String() string {
return fs.s
}