From 00895b122708ea7323e94c46b5b38d97ba94be38 Mon Sep 17 00:00:00 2001 From: FiniteReality Date: Sat, 6 May 2017 18:25:44 +0100 Subject: [PATCH] Remove CommandService.BuildServiceCollection :boom: --- src/Discord.Net.Commands/CommandService.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index bcfb54d96..f526e8f3b 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -300,14 +300,5 @@ namespace Discord.Commands return SearchResult.FromError(CommandError.UnknownCommand, "This input does not match any overload."); } - - public ServiceCollection CreateServiceCollection() - { - var serviceCollection = new ServiceCollection(); - serviceCollection.AddSingleton(this); - serviceCollection.AddSingleton(serviceCollection); - serviceCollection.AddSingleton(serviceCollection); - return serviceCollection; - } } }