From: David ‘Bombe’ Roden Date: Tue, 4 Nov 2014 19:18:05 +0000 (+0100) Subject: Don’t save bookmarks from the core anymore, the database does that now. X-Git-Tag: 0.9-rc1^2~3^2~42 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=85aad5a15fc8213950d3a40dfe1737d23986da40;p=Sone.git Don’t save bookmarks from the core anymore, the database does that now. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index c00a635..c6476ef 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1611,13 +1611,6 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, /* save known posts. */ database.save(); - /* save bookmarked posts. */ - int bookmarkedPostCounter = 0; - for (Post bookmarkedPost : getBookmarkedPosts()) { - configuration.getStringValue("Bookmarks/Post/" + bookmarkedPostCounter++ + "/ID").setValue(bookmarkedPost.getId()); - } - configuration.getStringValue("Bookmarks/Post/" + bookmarkedPostCounter++ + "/ID").setValue(null); - /* now save it. */ configuration.save();