Skip to content

Commit

Permalink
Remove account repository initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Adiras committed Feb 24, 2024
1 parent 08876c9 commit 777242a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ public FileAccountRepository(String filename, AccountFileFormat fileFormat) {
}

listeners = Collections.newSetFromMap(new ConcurrentHashMap<>());

// Only development purpose (delete in production)
try {
insert(new Account("admin", "test", "dir"));
insert(new Account("admin2", "test", "dir"));
insert(new Account("admin3", "test", "dir"));
} catch (AccountInsertException | AccountCreateException ignore) {}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@
public class InMemoryAccountRepository implements AccountRepository {
private final List<Account> accounts = new ArrayList<>();

public InMemoryAccountRepository() {
try {
insert(new Account("admin", "C:/Users/wkacp/Desktop/server", "admin"));
insert(new Account("test", "C:/Users/wkacp/Desktop/servedr", "admin"));
} catch (AccountCreateException e) {
e.printStackTrace();
}
}

@Override
public void update(@NotNull Account account) {

Expand Down

0 comments on commit 777242a

Please sign in to comment.