Skip to content

Commit

Permalink
chore: Remove redundant constructor (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvirja committed Nov 8, 2023
1 parent aa013c9 commit 0c93db5
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using CluedIn.Core.Data.Relational;
using CluedIn.Core.Providers;
using EntityType = CluedIn.Core.Data.EntityType;
using PdfSharpCore.Pdf.Content.Objects;
using CluedIn.Core.Data.Vocabularies;

namespace CluedIn.ExternalSearch.Providers.GoogleMaps
Expand All @@ -40,24 +39,6 @@ public GoogleMapsExternalSearchProvider()
this.TokenProvider = new RoundRobinTokenProvider(nameBasedTokenProvider.ApiToken.Split(',', ';'));
}

public GoogleMapsExternalSearchProvider(IList<string> tokens)
: this(true)
{
this.TokenProvider = new RoundRobinTokenProvider(tokens);
}

public GoogleMapsExternalSearchProvider(IExternalSearchTokenProvider tokenProvider)
: this(true)
{
this.TokenProvider = tokenProvider ?? throw new ArgumentNullException(nameof(tokenProvider));
}

private GoogleMapsExternalSearchProvider(bool tokenProviderIsRequired)
: base(Constants.ProviderId, AcceptedEntityTypes)
{
this.TokenProviderIsRequired = tokenProviderIsRequired;
}

/**********************************************************************************************************
* METHODS
**********************************************************************************************************/
Expand Down

0 comments on commit 0c93db5

Please sign in to comment.