Skip to content

Commit 12a2371

Browse files
committed
removed unused import statements in homepage classes
1 parent dacb3d3 commit 12a2371

File tree

3 files changed

+39
-42
lines changed

3 files changed

+39
-42
lines changed

src/main/java/data_access/DBGateway.java

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,6 @@ public DBGateway(IFlashcardDataAccess flashcardGateway,
2121
this.userGateway = userGateway;
2222
}
2323

24-
public static String getFlashcardPath() {
25-
return flashcardPath;
26-
}
27-
28-
public static String getFlashcardSetPath() {
29-
return flashcardSetPath;
30-
}
31-
32-
public static String getUserPath() {
33-
return userPath;
34-
}
35-
36-
public FlashcardDsRequestModel getFlashcard(int flashcardId){
37-
return this.flashcardGateway.getFlashcard(flashcardId);
38-
}
39-
40-
public FlashcardSetDsRequestModel getFlashcardSet(int flashcardSetId){
41-
return this.flashcardSetGateway.getFlashcardSet(flashcardSetId);
42-
}
43-
44-
public CommonUserDsRequestModel getCommonUser(String username){
45-
return this.userGateway.getUser(username);
46-
}
47-
48-
public IFlashcardDataAccess getFlashcardGateway() {
49-
return flashcardGateway;
50-
}
51-
52-
public IFlashcardSetDataAccess getFlashcardSetGateway() {
53-
return flashcardSetGateway;
54-
}
55-
56-
public IUserDataAccess getUserGateway() {
57-
return userGateway;
58-
}
59-
60-
public String[] getTitleAndDescription(int flashcardSetId) {
61-
return this.flashcardSetGateway.getTitleAndDescription(flashcardSetId);
62-
}
6324

6425
public boolean existsByName(String username){
6526
return this.userGateway.existsByName(username);
@@ -100,4 +61,43 @@ public void deleteFlashcard(int flashcardSetId, int flashcardId) {
10061
this.flashcardSetGateway.removeFlashcardId(flashcardSetId, flashcardId);
10162
this.flashcardGateway.deleteFlashcard(flashcardId);
10263
}
64+
public static String getFlashcardPath() {
65+
return flashcardPath;
66+
}
67+
68+
public static String getFlashcardSetPath() {
69+
return flashcardSetPath;
70+
}
71+
72+
public static String getUserPath() {
73+
return userPath;
74+
}
75+
76+
public FlashcardDsRequestModel getFlashcard(int flashcardId){
77+
return this.flashcardGateway.getFlashcard(flashcardId);
78+
}
79+
80+
public FlashcardSetDsRequestModel getFlashcardSet(int flashcardSetId){
81+
return this.flashcardSetGateway.getFlashcardSet(flashcardSetId);
82+
}
83+
84+
public CommonUserDsRequestModel getCommonUser(String username){
85+
return this.userGateway.getUser(username);
86+
}
87+
88+
public IFlashcardDataAccess getFlashcardGateway() {
89+
return flashcardGateway;
90+
}
91+
92+
public IFlashcardSetDataAccess getFlashcardSetGateway() {
93+
return flashcardSetGateway;
94+
}
95+
96+
public IUserDataAccess getUserGateway() {
97+
return userGateway;
98+
}
99+
100+
public String[] getTitleAndDescription(int flashcardSetId) {
101+
return this.flashcardSetGateway.getTitleAndDescription(flashcardSetId);
102+
}
103103
}

src/main/java/main_page/FlashcardSetDataPanel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import javax.swing.*;
1313
import javax.swing.border.Border;
14-
import java.awt.*;
1514
import java.awt.event.WindowEvent;
1615
import java.awt.event.WindowListener;
1716

src/main/java/main_page/HomePage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package main_page;
22

3-
import editor_main_page.EditorMainPage;
43
import create_flashcard_set_use_case.*;
54
import data_access.*;
65
import entities.FlashcardSetFactory;
@@ -19,7 +18,6 @@
1918
import java.awt.event.WindowEvent;
2019
import java.awt.event.WindowListener;
2120
import java.io.IOException;
22-
import java.util.HashMap;
2321
import java.util.Map;
2422

2523
public class HomePage extends Screen implements WindowListener {

0 commit comments

Comments
 (0)