X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSone.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FSone.java;h=2b0a2eb4231f658d33e5e68043e10be88bac2cd2;hp=843400ec4e6df05eb65e1d168adc5ad1ba567081;hb=2b7b9baa754ba9d4a41b0abfaf946bd9146a10c9;hpb=d98bd42433b94ba26460ca99495805dca3b06481 diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index 843400e..2b0a2eb 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -17,10 +17,7 @@ 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 { downloading, } - public static final Function> toAllAlbums = new Function>() { - @Override - public List apply(@Nullable Sone sone) { - return (sone == null) ? Collections.emptyList() : FLATTENER.apply( - sone.getRootAlbum()); - } - }; - /** * Returns the identity of this Sone. *