diff options
Diffstat (limited to 'skate/cluster.go')
-rw-r--r-- | skate/cluster.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/skate/cluster.go b/skate/cluster.go index 954d971..bec8154 100644 --- a/skate/cluster.go +++ b/skate/cluster.go @@ -110,15 +110,6 @@ func KeyTitleSandcrawler(p []byte) (ident string, key string, err error) { return ident, sandcrawlerSlugify(key), nil } -// KeySourceIdent extracts the source ident. -func KeySourceIdent(p []byte) (ident string, key string, err error) { - var doc IdentTitleDoc - if err = json.Unmarshal(p, &doc); err != nil { - return doc.Ident, doc.Ident, err - } - return doc.Ident, doc.Ident, nil -} - // sandcrawlerSlugify normalizes a string. func sandcrawlerSlugify(s string) string { slug := strings.ToLower(strings.TrimSpace(s)) |