From fbe915700b291b61821a79f42d1e4ca954e56175 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 12 Oct 2013 17:31:25 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20store=20image=20explicitely=20af?= =?utf8?q?ter=20adding=20it=20to=20an=20album.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The album builder takes care of that. --- src/main/java/net/pterodactylus/sone/core/Core.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 2628127..8756c60 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1518,7 +1518,6 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, checkArgument(sone.isLocal(), "sone must be a local Sone"); checkArgument(sone.equals(album.getSone()), "album must belong to the given Sone"); Image image = album.newImageBuilder().withId(temporaryImage.getId()).createdNow().sized(temporaryImage.getWidth(), temporaryImage.getHeight()).build(); - database.storeImage(image); imageInserter.insertImage(temporaryImage, image); return image; } -- 2.7.4