projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract memory-backed post database into its own class.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
Core.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/Core.java
b/src/main/java/net/pterodactylus/sone/core/Core.java
index
cb791dc
..
5a205d3
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/Core.java
+++ b/
src/main/java/net/pterodactylus/sone/core/Core.java
@@
-1480,9
+1480,6
@@
public class Core extends AbstractService implements SoneProvider {
configuration.getStringValue("SoneFollowingTimes/" + soneCounter + "/Sone").setValue(null);
}
configuration.getStringValue("SoneFollowingTimes/" + soneCounter + "/Sone").setValue(null);
}
- /* save known posts. */
- database.save();
-
/* save bookmarked posts. */
int bookmarkedPostCounter = 0;
synchronized (bookmarkedPosts) {
/* save bookmarked posts. */
int bookmarkedPostCounter = 0;
synchronized (bookmarkedPosts) {
@@
-1497,8
+1494,6
@@
public class Core extends AbstractService implements SoneProvider {
} catch (ConfigurationException ce1) {
logger.log(Level.SEVERE, "Could not store configuration!", ce1);
} catch (ConfigurationException ce1) {
logger.log(Level.SEVERE, "Could not store configuration!", ce1);
- } catch (DatabaseException de1) {
- logger.log(Level.SEVERE, "Could not save database!", de1);
} finally {
synchronized (configuration) {
storingConfiguration = false;
} finally {
synchronized (configuration) {
storingConfiguration = false;