Skip to content

Commit 1581caf

Browse files
ddamkeddamke
authored andcommitted
fix format and delete unused variables and imports
1 parent 38caef5 commit 1581caf

File tree

8 files changed

+5
-48
lines changed

8 files changed

+5
-48
lines changed

src/main/java/de/doubleslash/keeptime/common/Licenses.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public enum Licenses {
3939
"Fontawesome Icons — CC BY 4.0 License ",
4040
"http://creativecommons.org/licenses/by/4.0/");
4141

42-
4342
private final String path;
4443
private final String name;
4544
private final String url;

src/main/java/de/doubleslash/keeptime/common/Resources.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,14 @@ public enum RESOURCE {
4040
FXML_ABOUT("/layouts/about.fxml"),
4141
FXML_MANAGE_PROJECT("/layouts/manage-project.fxml"),
4242
FXML_MANAGE_WORK("/layouts/manage-work.fxml"),
43-
4443
SVG_CALENDAR_DAYS_ICON("/svgs/calendar-days.svg"),
45-
4644
SVG_CLOSE_ICON("/svgs/xmark.svg"),
47-
4845
SVG_SETTINGS_ICON("/svgs/gear.svg"),
49-
5046
SVG_MINUS_ICON("/svgs/minus.svg"),
51-
5247
SVG_TRASH_ICON("/svgs/trash-can.svg"),
53-
5448
SVG_PENCIL_ICON("/svgs/pencil.svg"),
55-
5649
SVG_FLOPPY_DISK_ICON("/svgs/floppy-disk.svg"),
57-
5850
SVG_BUG_ICON("/svgs/bug.svg")
59-
60-
6151
;
6252

6353
String resourceLocation;

src/main/java/de/doubleslash/keeptime/controller/Controller.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public void updateSettings(final Settings newValuedSettings) {
133133
settings.setRemindIfNotesAreEmpty(newValuedSettings.isRemindIfNotesAreEmpty());
134134
settings.setEmptyNoteReminderIsWork(newValuedSettings.isEmptyNoteReminderIsWork());
135135

136-
137136
settings = model.getSettingsRepository().save(settings);
138137

139138
model.defaultBackgroundColor.set(settings.getDefaultBackgroundColor());
@@ -150,7 +149,6 @@ public void updateSettings(final Settings newValuedSettings) {
150149
model.screenSettings.screenHash.set(settings.getScreenHash());
151150
model.remindIfNotesAreEmpty.set(settings.isRemindIfNotesAreEmpty());
152151
model.remindIfNotesAreEmptyIsWork.set(settings.isEmptyNoteReminderIsWork());
153-
154152
}
155153

156154
@PreDestroy

src/main/java/de/doubleslash/keeptime/model/Model.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ public Model(final ProjectRepository projectRepository, final WorkRepository wor
8484

8585
public final ObjectProperty<Boolean> remindIfNotesAreEmptyIsWork = new SimpleObjectProperty<>(false);
8686

87-
88-
8987
public final ScreenSettings screenSettings = new ScreenSettings();
9088

9189
private ConfigurableApplicationContext springContext;

src/main/java/de/doubleslash/keeptime/model/Settings.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ public class Settings {
7070
private boolean remindIfNotesAreEmpty;
7171

7272
private boolean emptyNoteReminderIsWork;
73-
74-
75-
7673
public Settings() {
7774
}
7875

src/main/java/de/doubleslash/keeptime/view/AboutController.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,12 @@
1919
import java.util.Comparator;
2020

2121
import de.doubleslash.keeptime.common.*;
22-
import javafx.geometry.Pos;
23-
import javafx.scene.Group;
2422
import javafx.scene.control.*;
25-
import javafx.scene.image.ImageView;
26-
import javafx.scene.layout.Background;
27-
import javafx.scene.shape.SVGPath;
28-
import javafx.scene.text.TextAlignment;
2923
import org.slf4j.Logger;
3024
import org.slf4j.LoggerFactory;
3125
import org.springframework.stereotype.Component;
3226

3327
import de.doubleslash.keeptime.ApplicationProperties;
34-
import de.doubleslash.keeptime.Main;
3528
import de.doubleslash.keeptime.view.license.LicenseTableRow;
3629
import javafx.collections.FXCollections;
3730
import javafx.collections.ObservableList;
@@ -54,10 +47,6 @@ public class AboutController {
5447

5548
@FXML
5649
private Button reportBugButton;
57-
58-
@FXML
59-
private SVGPath contentId;
60-
6150
@FXML
6251
private Label versionNumberLabel;
6352

@@ -90,7 +79,6 @@ public void initialize() {
9079
nameColumn.setMinWidth(160);
9180

9281
nameColumn.setCellValueFactory(new PropertyValueFactory<>("name"));
93-
//Set Bug Icon to reportBugButton
9482

9583
// licenseColumn
9684
final TableColumn<LicenseTableRow, String> licenseColumn = new TableColumn<>("License");

src/main/java/de/doubleslash/keeptime/view/ProjectsListViewController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,20 @@ private void changeProject(final Project newProject, final long minusSeconds) {
170170
if (model.remindIfNotesAreEmpty.get()) {
171171
final Work currentWork = model.activeWorkItem.get();
172172
if (currentWork != null && currentWork.getNotes().isEmpty() ) {
173-
if (showNoNoteSelectet(currentWork)) return;
173+
if (showNoNoteSelected(currentWork)) return;
174174
}
175175
}
176176
if (model.remindIfNotesAreEmptyIsWork.get()) {
177177
final Work currentWork = model.activeWorkItem.get();
178178
if (currentWork != null && currentWork.getNotes().isEmpty() &&currentWork.getProject().isWork()) {
179-
if (showNoNoteSelectet(currentWork)) return;
179+
if (showNoNoteSelected(currentWork)) return;
180180
}
181181
}
182182
controller.changeProject(newProject, minusSeconds);
183183

184184
}
185185

186-
private boolean showNoNoteSelectet(Work currentWork) {
186+
private boolean showNoNoteSelected(Work currentWork) {
187187
final TextInputDialog noteDialog = new TextInputDialog();
188188
noteDialog.setTitle("Empty Notes");
189189
noteDialog.setHeaderText("Switch projects without notes?");

src/main/java/de/doubleslash/keeptime/view/ViewController.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@
1818

1919
import java.awt.image.BufferedImage;
2020
import java.io.IOException;
21-
import java.io.InputStream;
2221
import java.time.Duration;
2322
import java.time.LocalDateTime;
2423
import java.util.Optional;
2524

2625
import de.doubleslash.keeptime.common.*;
27-
import javafx.geometry.Bounds;
28-
import javafx.scene.Node;
2926
import javafx.scene.control.*;
30-
import javafx.scene.shape.SVGPath;
3127
import org.slf4j.Logger;
3228
import org.slf4j.LoggerFactory;
3329
import org.springframework.beans.factory.annotation.Autowired;
@@ -73,13 +69,6 @@
7369
import javafx.scene.text.TextAlignment;
7470
import javafx.stage.Modality;
7571
import javafx.stage.Stage;
76-
import org.w3c.dom.Document;
77-
import org.w3c.dom.NodeList;
78-
import org.xml.sax.SAXException;
79-
80-
import javax.xml.parsers.DocumentBuilder;
81-
import javax.xml.parsers.DocumentBuilderFactory;
82-
import javax.xml.parsers.ParserConfigurationException;
8372

8473

8574
@Component
@@ -166,7 +155,7 @@ public ViewController(final Model model, final Controller controller) {
166155
}
167156

168157
@FXML
169-
private void initialize(){
158+
private void initialize() {
170159

171160
availableProjectsListView.setFixedCellSize(13);
172161

@@ -325,8 +314,6 @@ private void initialize(){
325314

326315
}
327316

328-
329-
330317
private Dialog<Project> dialogResultConverter(final Dialog<Project> dialog,
331318
final ManageProjectController manageProjectController) {
332319
dialog.setResultConverter(dialogButton -> {
@@ -345,7 +332,7 @@ private void settingsClicked() {
345332
settingsStage.show();
346333
}
347334

348-
private void calendarClicked(){
335+
private void calendarClicked() {
349336
LOG.info("Calendar clicked");
350337
this.mainStage.setAlwaysOnTop(false);
351338
reportStage.setAlwaysOnTop(true);

0 commit comments

Comments
 (0)