Remove redundant code
This commit is contained in:
parent
dd9cf3c5d7
commit
21f813d342
12 changed files with 19 additions and 29 deletions
|
@ -3,7 +3,6 @@ using System.Net;
|
|||
using System.Threading.Tasks;
|
||||
using Discord.Commands;
|
||||
using Discord.Net;
|
||||
using Geekbot.net.Lib.GlobalSettings;
|
||||
using Geekbot.net.Lib.Localization;
|
||||
using Geekbot.net.Lib.Logger;
|
||||
using SharpRaven;
|
||||
|
@ -19,7 +18,7 @@ namespace Geekbot.net.Lib.ErrorHandling
|
|||
private readonly IRavenClient _raven;
|
||||
private readonly bool _errorsInChat;
|
||||
|
||||
public ErrorHandler(IGeekbotLogger logger, ITranslationHandler translation, IGlobalSettings globalSettings, bool errorsInChat)
|
||||
public ErrorHandler(IGeekbotLogger logger, ITranslationHandler translation, bool errorsInChat)
|
||||
{
|
||||
_logger = logger;
|
||||
_translation = translation;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace Geekbot.net.Lib
|
||||
{
|
||||
public enum GeekbotExitCode : int
|
||||
public enum GeekbotExitCode
|
||||
{
|
||||
// General
|
||||
Clean = 0,
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Geekbot.net.Database;
|
||||
using Geekbot.net.Lib.Extensions;
|
||||
using Geekbot.net.Lib.Logger;
|
||||
using Geekbot.net.Lib.UserRepository;
|
||||
|
||||
namespace Geekbot.net.Lib.Highscores
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Geekbot.net.Lib.ReactionListener
|
|||
LoadListeners();
|
||||
}
|
||||
|
||||
private Task LoadListeners()
|
||||
private void LoadListeners()
|
||||
{
|
||||
var ids = _redis.SetMembers("MessageIds");
|
||||
_listener = new Dictionary<string, Dictionary<IEmote, ulong>>();
|
||||
|
@ -43,8 +43,6 @@ namespace Geekbot.net.Lib.ReactionListener
|
|||
}
|
||||
_listener.Add(messageId, emojiDict);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public bool IsListener(ulong id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue