Comment unused code
This commit is contained in:
parent
e7cbcfdb61
commit
0d0c42c895
|
@ -3,7 +3,7 @@ package ctbrec.ui.settings;
|
|||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Arrays;
|
||||
// import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
@ -362,18 +362,18 @@ public class CtbrecPreferencesStorage implements PreferencesStorage {
|
|||
return false;
|
||||
}
|
||||
|
||||
private boolean setUnchecked(String key, Object n) throws IllegalAccessException, NoSuchFieldException, InvocationTargetException {
|
||||
var field = BoundField.of(settings, key);
|
||||
var o = field.get();
|
||||
if (n instanceof List && o instanceof List) {
|
||||
var list = (List<String>)o;
|
||||
list.clear();
|
||||
list.addAll((List<String>)n);
|
||||
} else {
|
||||
field.set(n); // NOSONAR
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// private boolean setUnchecked(String key, Object n) throws IllegalAccessException, NoSuchFieldException, InvocationTargetException {
|
||||
// var field = BoundField.of(settings, key);
|
||||
// var o = field.get();
|
||||
// if (n instanceof List && o instanceof List) {
|
||||
// var list = (List<String>)o;
|
||||
// list.clear();
|
||||
// list.addAll((List<String>)n);
|
||||
// } else {
|
||||
// field.set(n); // NOSONAR
|
||||
// }
|
||||
// return true;
|
||||
// }
|
||||
|
||||
private void saveValue(Exec exe) {
|
||||
try {
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.slf4j.LoggerFactory;
|
|||
|
||||
public class DreamcamUpdateService extends PaginatedScheduledService {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(DreamcamUpdateService.class);
|
||||
private static final String API_URL = "https://api.dreamcam.co.kr/v1/live";
|
||||
// private static final String API_URL = "https://api.dreamcam.co.kr/v1/live";
|
||||
private static final int modelsPerPage = 64;
|
||||
private Dreamcam site;
|
||||
private String url;
|
||||
|
|
|
@ -6,13 +6,13 @@ import ctbrec.ui.settings.SettingsTab;
|
|||
import ctbrec.ui.sites.AbstractConfigUI;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.control.ToggleGroup;
|
||||
// import javafx.scene.control.ToggleGroup;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.CheckBox;
|
||||
import javafx.scene.control.RadioButton;
|
||||
// import javafx.scene.control.RadioButton;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
// import javafx.scene.layout.HBox;
|
||||
|
||||
public class WinkTvConfigUI extends AbstractConfigUI {
|
||||
private final WinkTv site;
|
||||
|
|
|
@ -12,7 +12,7 @@ import javafx.scene.layout.BorderPane;
|
|||
import javafx.scene.layout.VBox;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.awt.Desktop;
|
||||
// import java.awt.Desktop;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import ctbrec.ui.tabs.TabSelectionListener;
|
|||
import ctbrec.ui.tabs.recorded.ModelImportExport.ExportOptions;
|
||||
import javafx.application.Platform;
|
||||
import javafx.beans.property.SimpleObjectProperty;
|
||||
import javafx.beans.property.SimpleStringProperty;
|
||||
// import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.beans.property.StringPropertyBase;
|
||||
import javafx.collections.FXCollections;
|
||||
import javafx.collections.ObservableList;
|
||||
|
|
|
@ -9,7 +9,7 @@ import ctbrec.ui.action.AbstractModelAction.Result;
|
|||
import ctbrec.ui.action.CheckModelAccountAction;
|
||||
import ctbrec.ui.action.StopRecordingAction;
|
||||
import ctbrec.ui.controls.Dialogs;
|
||||
import ctbrec.ui.tabs.TabSelectionListener;
|
||||
// import ctbrec.ui.tabs.TabSelectionListener;
|
||||
import javafx.application.Platform;
|
||||
import javafx.concurrent.ScheduledService;
|
||||
import javafx.concurrent.Task;
|
||||
|
@ -26,7 +26,7 @@ import java.util.concurrent.Executors;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
public class RecordLaterTab extends AbstractRecordedModelsTab implements TabSelectionListener {
|
||||
public class RecordLaterTab extends AbstractRecordedModelsTab {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RecordLaterTab.class);
|
||||
|
||||
private ScheduledService<List<JavaFxModel>> updateService;
|
||||
|
|
|
@ -6,15 +6,15 @@ import ctbrec.sites.Site;
|
|||
import ctbrec.ui.action.PauseAction;
|
||||
import ctbrec.ui.action.ResumeAction;
|
||||
import ctbrec.ui.controls.Dialogs;
|
||||
import ctbrec.ui.tabs.TabSelectionListener;
|
||||
// import ctbrec.ui.tabs.TabSelectionListener;
|
||||
import javafx.event.ActionEvent;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
// import java.util.stream.Collectors;
|
||||
|
||||
public class RecordedModelsPerSiteTab extends RecordedModelsTab implements TabSelectionListener {
|
||||
public class RecordedModelsPerSiteTab extends RecordedModelsTab {
|
||||
|
||||
public RecordedModelsPerSiteTab(String title, Recorder recorder, Site site) {
|
||||
super(title, recorder, List.of(site));
|
||||
|
|
|
@ -10,7 +10,7 @@ import ctbrec.ui.action.AbstractModelAction.Result;
|
|||
import ctbrec.ui.action.*;
|
||||
import ctbrec.ui.controls.DateTimeCellFactory;
|
||||
import ctbrec.ui.controls.Dialogs;
|
||||
import ctbrec.ui.tabs.TabSelectionListener;
|
||||
// import ctbrec.ui.tabs.TabSelectionListener;
|
||||
import javafx.application.Platform;
|
||||
import javafx.beans.value.ChangeListener;
|
||||
import javafx.concurrent.ScheduledService;
|
||||
|
@ -48,7 +48,7 @@ import java.util.function.Predicate;
|
|||
|
||||
import static ctbrec.Recording.State.RECORDING;
|
||||
|
||||
public class RecordedModelsTab extends AbstractRecordedModelsTab implements TabSelectionListener {
|
||||
public class RecordedModelsTab extends AbstractRecordedModelsTab {
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RecordedModelsTab.class);
|
||||
|
||||
private ScheduledService<List<JavaFxModel>> updateService;
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.iheartradio.m3u8.data.MasterPlaylist;
|
|||
import com.iheartradio.m3u8.data.Playlist;
|
||||
import com.iheartradio.m3u8.data.PlaylistData;
|
||||
import ctbrec.AbstractModel;
|
||||
import ctbrec.Config;
|
||||
// import ctbrec.Config;
|
||||
import ctbrec.StringUtil;
|
||||
import ctbrec.io.HttpException;
|
||||
import ctbrec.io.json.ObjectMapperFactory;
|
||||
|
|
|
@ -34,7 +34,7 @@ public class DreamcamModel extends AbstractModel {
|
|||
private static final String API_URL = "https://bss.dreamcamtrue.com";
|
||||
private int[] resolution = new int[2];
|
||||
private JSONObject modelInfo;
|
||||
private boolean VRMode = false;
|
||||
// private boolean VRMode = false;
|
||||
|
||||
private transient Instant lastInfoRequest = Instant.EPOCH;
|
||||
|
||||
|
|
|
@ -240,5 +240,4 @@ public class StripchatHttpClient extends HttpClient {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,10 +6,10 @@ import java.io.IOException;
|
|||
import java.security.InvalidKeyException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.time.LocalTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.*;
|
||||
// import java.util.Arrays;
|
||||
// import java.util.Collections;
|
||||
// import java.util.Enumeration;
|
||||
// import java.util.*;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
package ctbrec.recorder.server;
|
||||
|
||||
import ctbrec.Config;
|
||||
// import ctbrec.Config;
|
||||
import ctbrec.io.HttpClient;
|
||||
import ctbrec.recorder.Recorder;
|
||||
import ctbrec.recorder.SimplifiedLocalRecorder;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
// import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.json.JSONObject;
|
||||
// import org.json.JSONObject;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
// import java.io.PrintWriter;
|
||||
// import java.io.StringWriter;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.text.MessageFormat;
|
||||
// import java.text.MessageFormat;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static javax.servlet.http.HttpServletResponse.*;
|
||||
|
@ -53,8 +53,8 @@ public class DebugServlet extends AbstractCtbrecServlet {
|
|||
var stacks = Thread.getAllStackTraces();
|
||||
var box = new Object() { String text = ""; };//stacks.toString();
|
||||
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
// StringWriter sw = new StringWriter();
|
||||
// PrintWriter pw = new PrintWriter(sw);
|
||||
// e.printStackTrace(pw);
|
||||
|
||||
stacks.forEach((thread, stack) -> {
|
||||
|
|
Loading…
Reference in New Issue