🔥 Remove another function from Sone interface
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Sone.java
index 843400e..2b0a2eb 100644 (file)
 
 package net.pterodactylus.sone.data;
 
-import static net.pterodactylus.sone.data.Album.FLATTENER;
-
 import java.util.Collection;
-import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 
@@ -31,8 +28,6 @@ import net.pterodactylus.sone.freenet.wot.Identity;
 
 import freenet.keys.FreenetURI;
 
-import com.google.common.base.Function;
-
 /**
  * A Sone defines everything about a user: her profile, her status updates, her
  * replies, her likes and dislikes, etc.
@@ -57,14 +52,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable<Sone> {
                downloading,
        }
 
-       public static final Function<Sone, List<Album>> toAllAlbums = new Function<Sone, List<Album>>() {
-               @Override
-               public List<Album> apply(@Nullable Sone sone) {
-                       return (sone == null) ? Collections.<Album>emptyList() : FLATTENER.apply(
-                                       sone.getRootAlbum());
-               }
-       };
-
        /**
         * Returns the identity of this Sone.
         *