Cleanup TODOs

This commit is contained in:
Draycia committed 2021-12-01 00:56:21 -08:00
1 parent 7a4e137bf6
commit 445895da94
6 files changed
+2 -11

No files matched your search

@@ -224,7 +224,6 @@ public interface CarbonPlayer extends Audience, Identified {
* @param message the message to be sent * @param message the message to be sent
* @since 2.0.0 * @since 2.0.0
*/ */
// TODO: change return type, provide information useful like what message was actually sent?
void sendMessageAsPlayer(final String message); void sendMessageAsPlayer(final String message);
/** /**
@@ -270,7 +270,7 @@ public class CarbonChannelRegistry implements ChannelRegistry, DefaultedRegistry
this.messageService.changedChannels(sender, channel.key().value()); this.messageService.changedChannels(sender, channel.key().value());
} }
}) })
.build(); // TODO: command aliases .build();
commandManager.command(command); commandManager.command(command);
@@ -298,9 +298,6 @@ public class CarbonChannelRegistry implements ChannelRegistry, DefaultedRegistry
} }
} }
// TODO: option to specify if the channel should invoke ChatChannel#recipients
// or ChatChannel#filterRecipients
// for now we will just always invoke ChatChannel#recipients
final var recipients = channel.recipients(sender); final var recipients = channel.recipients(sender);
final var renderers = new ArrayList<KeyedRenderer>(); final var renderers = new ArrayList<KeyedRenderer>();
@@ -61,7 +61,6 @@ public class MuteHandler {
event.renderers().add(this.renderer); event.renderers().add(this.renderer);
// TODO: ShadowMuteHandler? Include that logic in here?
event.recipients().removeIf(entry -> entry instanceof CarbonPlayer carbonPlayer && event.recipients().removeIf(entry -> entry instanceof CarbonPlayer carbonPlayer &&
!carbonPlayer.spying()); !carbonPlayer.spying());
}); });
@@ -97,7 +97,7 @@ public final class CarbonMessageSource implements IMessageSource<Audience, Strin
return; return;
} }
this.logger.info("Found locale {} ({}) in: {}", locale.getDisplayName(), locale, localeFile); // todo - debug this.logger.info("Found locale {} ({}) in: {}", locale.getDisplayName(), locale, localeFile);
final Properties properties = new Properties(); final Properties properties = new Properties();
@@ -101,7 +101,6 @@ public class JSONUserManager implements UserManager<CarbonPlayerCommon> {
this.userCache.put(uuid, player); this.userCache.put(uuid, player);
// TODO: supply reason if fromJson returns null
return new ComponentPlayerResult<>(player, empty()); return new ComponentPlayerResult<>(player, empty());
} catch (final IOException exception) { } catch (final IOException exception) {
return new ComponentPlayerResult<>(null, text(exception.getMessage())); return new ComponentPlayerResult<>(null, text(exception.getMessage()));
@@ -86,9 +86,6 @@ public final class VelocityChatListener {
} }
} }
// TODO: option to specify if the channel should invoke ChatChannel#recipients
// or ChatChannel#filterRecipients
// for now we will just always invoke ChatChannel#recipients
final var recipients = channel.recipients(sender); final var recipients = channel.recipients(sender);
final var renderers = new ArrayList<KeyedRenderer>(); final var renderers = new ArrayList<KeyedRenderer>();