From: David ‘Bombe’ Roden Date: Wed, 16 Oct 2013 18:43:55 +0000 (+0200) Subject: Remove unused methods. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=66be28ea63a7a6cf7045cc1842d0045b3260e79c;p=Sone.git Remove unused methods. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 3e4bf1d..126f4ae 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -119,9 +119,6 @@ public class Core extends AbstractService implements SoneProvider, PostReplyProv /** The logger. */ private static final Logger logger = Logging.getLogger(Core.class); - /** The start time. */ - private final long startupTime = System.currentTimeMillis(); - /** The options. */ private final Options options = new Options(); @@ -237,15 +234,6 @@ public class Core extends AbstractService implements SoneProvider, PostReplyProv // /** - * Returns the time Sone was started. - * - * @return The startup time (in milliseconds since Jan 1, 1970 UTC) - */ - public long getStartupTime() { - return startupTime; - } - - /** * Sets the configuration to use. This will automatically save the current * configuration to the given configuration. * @@ -420,22 +408,6 @@ public class Core extends AbstractService implements SoneProvider, PostReplyProv } } - /** - * Returns whether the target Sone is trusted by the origin Sone. - * - * @param origin - * The origin Sone - * @param target - * The target Sone - * @return {@code true} if the target Sone is trusted by the origin Sone - */ - public boolean isSoneTrusted(Sone origin, Sone target) { - checkNotNull(origin, "origin must not be null"); - checkNotNull(target, "target must not be null"); - checkArgument(origin.getIdentity() instanceof OwnIdentity, "origin’s identity must be an OwnIdentity"); - return trustedIdentities.containsEntry(origin.getIdentity(), target.getIdentity()); - } - @Override public Optional getPostReply(String replyId) { return database.getPostReply(replyId); @@ -1213,16 +1185,6 @@ public class Core extends AbstractService implements SoneProvider, PostReplyProv } /** - * Bookmarks the given post. - * - * @param post - * The post to bookmark - */ - public void bookmark(Post post) { - bookmarkPost(post.getId()); - } - - /** * Bookmarks the post with the given ID. * * @param id @@ -1318,7 +1280,7 @@ public class Core extends AbstractService implements SoneProvider, PostReplyProv * * @param image * The image to delete - * @see #deleteTemporaryImage(TemporaryImage) + * @see #deleteTemporaryImage(String) */ public void deleteImage(Image image) { checkNotNull(image, "image must not be null"); @@ -1346,17 +1308,6 @@ public class Core extends AbstractService implements SoneProvider, PostReplyProv } /** - * Deletes the given temporary image. - * - * @param temporaryImage - * The temporary image to delete - */ - public void deleteTemporaryImage(TemporaryImage temporaryImage) { - checkNotNull(temporaryImage, "temporaryImage must not be null"); - deleteTemporaryImage(temporaryImage.getId()); - } - - /** * Deletes the temporary image with the given ID. * * @param imageId