Skip to content

Commit

Permalink
[nolist] remove unnecessary synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Jul 10, 2023
1 parent a0e8411 commit 8fe8713
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public boolean isPaused() {
}

@Override
public synchronized void removePlayer(QueuePlayer player) {
public void removePlayer(QueuePlayer player) {
main.getQueueManager().getSendingAttempts().remove(player);
queue.remove(player);
positionChange();
Expand All @@ -221,7 +221,7 @@ public void addPlayer(QueuePlayer player) {
}

@Override
public synchronized void addPlayer(QueuePlayer player, int position) {
public void addPlayer(QueuePlayer player, int position) {
if(!player.getQueueServer().equals(this) || queue.contains(player)) return;

if(position >= 0) {
Expand Down Expand Up @@ -291,7 +291,7 @@ public QueuePlayer findPlayer(AdaptedPlayer player) {
return findPlayer(player.getUniqueId());
}
@Override
public synchronized QueuePlayer findPlayer(UUID uuid) {
public QueuePlayer findPlayer(UUID uuid) {
for(QueuePlayer queuePlayer : queue) {
if(queuePlayer.getUniqueId().toString().equals(uuid.toString())) {
return queuePlayer;
Expand Down

0 comments on commit 8fe8713

Please sign in to comment.