From 828083baaea2c33976a348ac0b597220d18c2f6f Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Mon, 28 Nov 2022 22:55:50 -0500 Subject: [PATCH] Remove duplicate files --- AOC Runner/AOC Runner.csproj | 10 ---------- AOC Runner/AOCRunner.cs | 30 ---------------------------- AOC Runner/IProblemBase.cs | 18 ----------------- AOC Runner/ProblemInfoAttribute.cs | 13 ------------ AOC.Shared/AOC.Shared.projitems | 15 -------------- AOC.Shared/AOC.Shared.shproj | 13 ------------ AOC.Shared/AOCAttribute.cs | 18 ----------------- AOC.Shared/ProblemBase.cs | 14 ------------- AOC2022/AOC2022.csproj | 13 ------------ AOC2022/TestProblem.cs | 32 ------------------------------ AOC2023/AOC2023.csproj | 13 ------------ AOC2023/TestProblem.cs | 32 ------------------------------ 12 files changed, 221 deletions(-) delete mode 100644 AOC Runner/AOC Runner.csproj delete mode 100644 AOC Runner/AOCRunner.cs delete mode 100644 AOC Runner/IProblemBase.cs delete mode 100644 AOC Runner/ProblemInfoAttribute.cs delete mode 100644 AOC.Shared/AOC.Shared.projitems delete mode 100644 AOC.Shared/AOC.Shared.shproj delete mode 100644 AOC.Shared/AOCAttribute.cs delete mode 100644 AOC.Shared/ProblemBase.cs delete mode 100644 AOC2022/AOC2022.csproj delete mode 100644 AOC2022/TestProblem.cs delete mode 100644 AOC2023/AOC2023.csproj delete mode 100644 AOC2023/TestProblem.cs diff --git a/AOC Runner/AOC Runner.csproj b/AOC Runner/AOC Runner.csproj deleted file mode 100644 index ce74c62..0000000 --- a/AOC Runner/AOC Runner.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - net7.0 - AOC.Runner - enable - enable - - - diff --git a/AOC Runner/AOCRunner.cs b/AOC Runner/AOCRunner.cs deleted file mode 100644 index 3d560b7..0000000 --- a/AOC Runner/AOCRunner.cs +++ /dev/null @@ -1,30 +0,0 @@ -using AOC.Runner; - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; - -namespace AdventOfCode; -public class AOCRunner -{ - public AOCRunner() - { - FindProblemClasses(); - } - - private void FindProblemClasses() - { - - var types = Assembly.GetExecutingAssembly()?.DefinedTypes.Where(t => t.IsAssignableTo(typeof(IProblemBase))); - if (types == null) - return; - foreach (var type in types) - { - Console.WriteLine(type.Name); - } - - } -} diff --git a/AOC Runner/IProblemBase.cs b/AOC Runner/IProblemBase.cs deleted file mode 100644 index 5a40008..0000000 --- a/AOC Runner/IProblemBase.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace AOC.Runner; -public interface IProblemBase -{ - void LoadInput(); - - void CalculatePart1(); - - void PrintPart1(); - - void CalculatePart2(); - void PrintPart2(); -} \ No newline at end of file diff --git a/AOC Runner/ProblemInfoAttribute.cs b/AOC Runner/ProblemInfoAttribute.cs deleted file mode 100644 index 91c0e25..0000000 --- a/AOC Runner/ProblemInfoAttribute.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace AOC.Runner; -public class ProblemInfoAttribute : Attribute -{ - public int Day { get; init; } - public string Year { get; init; } - public string Name { get; init; } - public ProblemInfoAttribute(string year, int day, string name) - { - Year = year; - Day = day; - Name = name; - } -} \ No newline at end of file diff --git a/AOC.Shared/AOC.Shared.projitems b/AOC.Shared/AOC.Shared.projitems deleted file mode 100644 index 073154b..0000000 --- a/AOC.Shared/AOC.Shared.projitems +++ /dev/null @@ -1,15 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 2a85c7ef-9de8-4c58-b15c-4d4393590b3f - - - AOC.Shared - - - - - - \ No newline at end of file diff --git a/AOC.Shared/AOC.Shared.shproj b/AOC.Shared/AOC.Shared.shproj deleted file mode 100644 index c3b7fce..0000000 --- a/AOC.Shared/AOC.Shared.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 2a85c7ef-9de8-4c58-b15c-4d4393590b3f - 14.0 - - - - - - - - diff --git a/AOC.Shared/AOCAttribute.cs b/AOC.Shared/AOCAttribute.cs deleted file mode 100644 index 640e69e..0000000 --- a/AOC.Shared/AOCAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace AOC.Shared -{ - public class ProblemInfoAttribute : Attribute - { - public int Day { get; init; } - public string Year { get; init; } - public string Name { get; init; } - public ProblemInfoAttribute(string year, int day, string name) { - Year = year; - Day = day; - Name = name; - } - } -} diff --git a/AOC.Shared/ProblemBase.cs b/AOC.Shared/ProblemBase.cs deleted file mode 100644 index 79a4532..0000000 --- a/AOC.Shared/ProblemBase.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace AOC.Shared -{ - public interface IProblemBase - { - void LoadInput(); - - void CalculatePart1(); - - void PrintPart1(); - - void CalculatePart2(); - void PrintPart2(); - } -} \ No newline at end of file diff --git a/AOC2022/AOC2022.csproj b/AOC2022/AOC2022.csproj deleted file mode 100644 index f1e148e..0000000 --- a/AOC2022/AOC2022.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net7.0 - enable - enable - - - - - - - diff --git a/AOC2022/TestProblem.cs b/AOC2022/TestProblem.cs deleted file mode 100644 index 68e446b..0000000 --- a/AOC2022/TestProblem.cs +++ /dev/null @@ -1,32 +0,0 @@ -using AOC.Runner; - -namespace AOC2022; -[ProblemInfo("2022", 0, "Test")] -public class TestProblem : IProblemBase -{ - public void LoadInput() - { - Thread.Sleep(1000); - } - - public void CalculatePart1() - { - Thread.Sleep(1000); - } - - public void CalculatePart2() - { - Thread.Sleep(1000); - } - - - public void PrintPart1() - { - Console.WriteLine("Result"); - } - - public void PrintPart2() - { - Console.WriteLine("Result 2"); - } -} diff --git a/AOC2023/AOC2023.csproj b/AOC2023/AOC2023.csproj deleted file mode 100644 index f1e148e..0000000 --- a/AOC2023/AOC2023.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net7.0 - enable - enable - - - - - - - diff --git a/AOC2023/TestProblem.cs b/AOC2023/TestProblem.cs deleted file mode 100644 index 018d2eb..0000000 --- a/AOC2023/TestProblem.cs +++ /dev/null @@ -1,32 +0,0 @@ -using AOC.Runner; - -namespace AOC2023; -[ProblemInfo("2023", 0, "Test")] -public class TestProblem : IProblemBase -{ - public void LoadInput() - { - Thread.Sleep(1000); - } - - public void CalculatePart1() - { - Thread.Sleep(1000); - } - - public void CalculatePart2() - { - Thread.Sleep(1000); - } - - - public void PrintPart1() - { - Console.WriteLine("Result"); - } - - public void PrintPart2() - { - Console.WriteLine("Result 2"); - } -}