Remove dead code
This commit is contained in:
parent
4105dc61c6
commit
90124a7c64
|
@ -13,8 +13,6 @@ import okhttp3.Request;
|
|||
import okhttp3.Response;
|
||||
import org.json.JSONObject;
|
||||
import org.jsoup.nodes.Element;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.xml.bind.JAXBException;
|
||||
import java.io.IOException;
|
||||
|
@ -28,8 +26,6 @@ import static ctbrec.Model.State.ONLINE;
|
|||
import static ctbrec.io.HttpConstants.*;
|
||||
|
||||
public class SecretFriendsModel extends AbstractModel {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(SecretFriendsModel.class);
|
||||
private String status = null;
|
||||
private int[] resolution = new int[]{0, 0};
|
||||
private static final Random RNG = new Random();
|
||||
|
||||
|
@ -38,7 +34,7 @@ public class SecretFriendsModel extends AbstractModel {
|
|||
|
||||
@Override
|
||||
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException {
|
||||
if (ignoreCache || status == null) {
|
||||
if (ignoreCache) {
|
||||
String url = SecretFriends.BASE_URI + "/friend/bio/" + getName();
|
||||
Request req = new Request.Builder()
|
||||
.url(url)
|
||||
|
@ -160,7 +156,6 @@ public class SecretFriendsModel extends AbstractModel {
|
|||
|
||||
@Override
|
||||
public void invalidateCacheEntries() {
|
||||
status = null;
|
||||
resolution = new int[]{0, 0};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue