Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: service/datastore/raw_interface.go

Issue 1516173002: Fix error message from KeyForObj when passing an invalid struct. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Fix GetMetaDefault silliness Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: service/datastore/raw_interface.go
diff --git a/service/datastore/raw_interface.go b/service/datastore/raw_interface.go
index 5d4fca391a285e0f2d2e6ff73fb28e829395eb4c..a6c75d628e0a889fa667a82027d429ab454aa895 100644
--- a/service/datastore/raw_interface.go
+++ b/service/datastore/raw_interface.go
@@ -82,13 +82,6 @@ func (m MultiMetaGetter) GetMeta(idx int, key string) (interface{}, error) {
return m.GetSingle(idx).GetMeta(key)
}
-// GetMetaDefault is like PropertyLoadSaver.GetMetaDefault, but it also takes an
-// index indicating which slot you want metadata for. If idx isn't there, this
-// returns dflt.
-func (m MultiMetaGetter) GetMetaDefault(idx int, key string, dflt interface{}) interface{} {
- return m.GetSingle(idx).GetMetaDefault(key, dflt)
-}
-
// GetSingle gets a single MetaGetter at the specified index.
func (m MultiMetaGetter) GetSingle(idx int) MetaGetter {
if idx >= len(m) || m[idx] == nil {

Powered by Google App Engine
This is Rietveld 408576698