From e3d56faccea0efc58c3d0a7494ce489ed123fc6b Mon Sep 17 00:00:00 2001 From: Florens Douwes Date: Sat, 9 Aug 2014 13:21:09 +0200 Subject: [PATCH] Remove loadable from post.finish --- Clover/app/src/main/java/org/floens/chan/core/model/Post.java | 2 +- .../main/java/org/floens/chan/core/net/ChanReaderRequest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Clover/app/src/main/java/org/floens/chan/core/model/Post.java b/Clover/app/src/main/java/org/floens/chan/core/model/Post.java index e8da32a1..45670310 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/model/Post.java +++ b/Clover/app/src/main/java/org/floens/chan/core/model/Post.java @@ -104,7 +104,7 @@ public class Post { * * @return false if this data is invalid */ - public boolean finish(Loadable loadable) { + public boolean finish() { if (board == null) return false; diff --git a/Clover/app/src/main/java/org/floens/chan/core/net/ChanReaderRequest.java b/Clover/app/src/main/java/org/floens/chan/core/net/ChanReaderRequest.java index 4e8815aa..b3d97b07 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/net/ChanReaderRequest.java +++ b/Clover/app/src/main/java/org/floens/chan/core/net/ChanReaderRequest.java @@ -163,7 +163,7 @@ public class ChanReaderRequest extends JsonReaderRequest> { for (int no : invalidatedPosts) { for (Post post : totalList) { if (post.no == no) { - if (!post.finish(loadable)) { + if (!post.finish()) { throw new IOException("Incorrect data about post received."); } break; @@ -397,7 +397,7 @@ public class ChanReaderRequest extends JsonReaderRequest> { if (cachedResult != null) { return cachedResult; } else { - if (!post.finish(loadable)) { + if (!post.finish()) { throw new IOException("Incorrect data about post received."); }