]> git.lizzy.rs Git - go-anidb.git/commitdiff
anidb: rename SaveCurrentTitles to DumpTitles, convert to function
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Sun, 14 Jul 2013 17:49:47 +0000 (14:49 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Sun, 14 Jul 2013 17:49:47 +0000 (14:49 -0300)
It's part of the Dump family of functions, and doesn't actually need any
data from an AniDB struct.

titlecache.go

index c4ff40450cd178c1eb6382a41a98920769f1900f..26a2fd48166467c7c2dcb053f3dfa398350c87c9 100644 (file)
@@ -35,7 +35,7 @@ func LoadTitles(src io.Reader) error {
 }
 
 // Saves the currently cached anime-titles database to the given io.Writer.
-func (adb *AniDB) SaveCurrentTitles(dst io.Writer) (int64, error) {
+func DumpTitles(dst io.Writer) (int64, error) {
        return io.Copy(dst, bytes.NewReader(titlesFileData))
 }