Remove redundant code

This commit is contained in:
runebaas 2020-02-08 15:42:42 +01:00
parent dd9cf3c5d7
commit 21f813d342
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
12 changed files with 19 additions and 29 deletions

View file

@ -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;

View file

@ -1,6 +1,6 @@
namespace Geekbot.net.Lib
{
public enum GeekbotExitCode : int
public enum GeekbotExitCode
{
// General
Clean = 0,

View file

@ -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

View file

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

View file

@ -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)