Skip to content

Commit

Permalink
Remove unused chan API
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishiranu committed Sep 25, 2020
1 parent c39c899 commit a31da7b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 129 deletions.
2 changes: 1 addition & 1 deletion src-api/chan/content/ChanConfiguration.java
Expand Up @@ -85,7 +85,7 @@ public final void init() {

// TODO CHAN
// Remove this field after updating
// allchan arhivach cablesix dvach fourchan meguca ronery sevenchan tumbach
// allchan arhivach sevenchan tumbach
// Added: 28.07.20 22:23
@Public public static final String CAPTCHA_TYPE_RECAPTCHA_1 = "recaptcha_1";
@Public public static final String CAPTCHA_TYPE_RECAPTCHA_2 = "recaptcha_2";
Expand Down
13 changes: 0 additions & 13 deletions src-api/chan/content/ChanPerformer.java
Expand Up @@ -11,7 +11,6 @@
import chan.content.model.Post;
import chan.content.model.Posts;
import chan.content.model.ThreadSummary;
import chan.content.model.Threads;
import chan.http.ChanFileOpenable;
import chan.http.HttpException;
import chan.http.HttpHolder;
Expand Down Expand Up @@ -223,18 +222,6 @@ public ReadThreadsResult setValidator(HttpValidator validator) {
this.validator = validator;
return this;
}

// TODO CHAN
// Remove this constructor after updating
// apachan
// Added: 24.08.16 03:39
@Public
public ReadThreadsResult(Threads threads) {
this(threads != null ? threads.getThreads() : null);
if (threads != null) {
boardSpeed = threads.getBoardSpeed();
}
}
}

@Public
Expand Down
22 changes: 3 additions & 19 deletions src-api/chan/content/ThreadRedirectException.java
@@ -1,26 +1,10 @@
/*
* Copyright 2016-2017 Fukurou Mishiranu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package chan.content;

import chan.annotation.Public;

// TODO CHAN
// Remove this class aafter updating
// apachan archiveliom desustorage exach fourplebs krautchan meguca ronery
// Remove this class after updating
// exach fourplebs
// Added: 13.10.16 14:55
@Public
public final class ThreadRedirectException extends Exception {
Expand All @@ -47,4 +31,4 @@ public RedirectException.Target obtainTarget(String chanName, String boardName)
return RedirectException.toThread(this.boardName != null ? this.boardName : boardName,
threadNumber, postNumber).obtainTarget(chanName);
}
}
}
62 changes: 0 additions & 62 deletions src-api/chan/content/model/Threads.java

This file was deleted.

33 changes: 8 additions & 25 deletions src-api/chan/text/TemplateParser.java
@@ -1,36 +1,19 @@
/*
* Copyright 2016-2017 Fukurou Mishiranu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package chan.text;

import java.util.ArrayList;
import java.util.HashMap;

import android.util.Pair;

import chan.annotation.Extendable;
import chan.annotation.Public;
import chan.util.StringUtils;
import java.util.ArrayList;
import java.util.HashMap;

// TODO CHAN
// Make internal builder methods private and remove dynamic safety check after updating alphachan alterchan arhivach
// bonzibuddy britfags bunbunmaru candydollchan chaosach chiochan desustorage exach fourplebs freeportseven gurochan
// haibane infinite kropyvach nowere nulldvachnet nulleu nullnyan nulltirech onechanca ozuchan ponyach randomarchive
// sevenchan tiretirech uboachan valkyria xyntach
// Added: 07.03.17 22:33
// Remove this class after updating
// alphachan alterchan arhivach brchan candydollchan chaosach chiochan dangeru dobrochan erlach exach fiftyfive
// fourplebs haibane kropyvach lainchan lolifox nulltirech onechanca ponyach randomarchive sevenchan synch taima
// tiretirech twentyseven uboachan valkyria wizardchan
// Added: 24.09.20 08:23
@SuppressWarnings("ALL")
@Public
public final class TemplateParser<H> {
private final HashMap<String, ArrayList<AttributeMatcher<H>>> openMatchers = new HashMap<>();
Expand Down
9 changes: 0 additions & 9 deletions src-api/chan/util/CommonUtils.java
Expand Up @@ -27,15 +27,6 @@ public static boolean sleepMaxRealtime(long startRealtime, long interval) {
}
}

// TODO CHAN
// Remove method after updating
// endchan
// Added: 24.08.20 00:02
@Public
public static boolean sleepMaxTime(long startTime, long interval) {
return sleepMaxRealtime(SystemClock.elapsedRealtime() - System.currentTimeMillis() + startTime, interval);
}

@Public
public static String optJsonString(JSONObject jsonObject, String name) {
return optJsonString(jsonObject, name, null);
Expand Down

0 comments on commit a31da7b

Please sign in to comment.