From 3bc611bd9d59e99d72709ff1297cd6ecfbd960de Mon Sep 17 00:00:00 2001 From: BLTA Date: Tue, 3 Dec 2024 10:42:14 -0800 Subject: [PATCH] -- Removed un referenced company definitions in company.cpp file --- src/modules/company.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/company.cpp b/src/modules/company.cpp index de5818b2..037791a1 100644 --- a/src/modules/company.cpp +++ b/src/modules/company.cpp @@ -11,7 +11,7 @@ namespace faker::company { namespace{ - const struct CompanyDefintion& getCompanyDefinition(Locale locale) + const struct CompanyDefinition& getCompanyDefinition(Locale locale) { switch(locale) { @@ -59,7 +59,6 @@ std::string_view industry(Locale locale) std::string buzzPhrase(Locale locale) { - const auto& companyDefintion = getCompanyDefinition(locale); return common::format("{} {} {}", buzzVerb(locale), buzzAdjective(locale), buzzNoun(locale)); } @@ -83,7 +82,6 @@ std::string_view buzzVerb(Locale locale) std::string catchPhrase(Locale locale) { - const auto& companyDefintion = getCompanyDefinition(locale); return common::format("{} {} {}", catchPhraseAdjective(locale), catchPhraseDescriptor(locale), catchPhraseNoun(locale)); }