From b14ed4966ffe32509f9ce9b39cb641a7ab6d5e7f Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 26 Feb 2021 18:18:11 +1000 Subject: [PATCH] Cleanup PathEntryCollection ctors, remove unused method Add --- .../config/PathEntryCollection.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/BizHawk.Client.Common/config/PathEntryCollection.cs b/src/BizHawk.Client.Common/config/PathEntryCollection.cs index e90b601ff2..193b3eedc2 100644 --- a/src/BizHawk.Client.Common/config/PathEntryCollection.cs +++ b/src/BizHawk.Client.Common/config/PathEntryCollection.cs @@ -12,22 +12,13 @@ namespace BizHawk.Client.Common { public List Paths { get; } - public PathEntryCollection() - { - Paths = new List(); - Paths.AddRange(DefaultValues); - } - [JsonConstructor] public PathEntryCollection(List paths) { Paths = paths; } - public void Add(PathEntry p) - { - Paths.Add(p); - } + public PathEntryCollection() : this(new List(DefaultValues)) {} public bool UseRecentForRoms { get; set; } public string LastRomPath { get; set; } = ".";