Skip to content

Commit

Permalink
removed unused
Browse files Browse the repository at this point in the history
  • Loading branch information
ignacionr committed Jul 3, 2018
1 parent cf1564a commit c403517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/shared/cpp/ObjectModel/ParseUtil.cpp
Expand Up @@ -306,7 +306,7 @@ std::string ParseUtil::ToLowercase(std::string const &value)
{
std::string new_value;
new_value.resize(value.size());
auto new_end = std::transform(value.begin(), value.end(), new_value.begin(), [](char c) { return std::tolower(c, std::locale()); });
std::transform(value.begin(), value.end(), new_value.begin(), [](char c) { return std::tolower(c, std::locale()); });
return new_value;
}

Expand Down
5 changes: 2 additions & 3 deletions source/shared/cpp/ObjectModel/ShowCardAction.cpp
Expand Up @@ -51,7 +51,7 @@ std::shared_ptr<BaseActionElement> ShowCardActionParser::Deserialize(
auto parseResult = AdaptiveCard::Deserialize(json.get(propertyName, Json::Value()), std::numeric_limits<double>::max(), elementParserRegistration, actionParserRegistration);

auto showCardWarnings = parseResult->GetWarnings();
auto warningsEnd = warnings.insert(warnings.end(), showCardWarnings.begin(), showCardWarnings.end());
warnings.insert(warnings.end(), showCardWarnings.begin(), showCardWarnings.end());

showCardAction->SetCard(parseResult->GetAdaptiveCard());

Expand All @@ -76,6 +76,5 @@ void ShowCardAction::GetResourceInformation(std::vector<RemoteResourceInformatio
{
auto card = GetCard();
auto showCardResources = card->GetResourceInformation();
auto resourceInfoEnd = resourceInfo.insert(resourceInfo.end(), showCardResources.begin(), showCardResources.end());
return;
resourceInfo.insert(resourceInfo.end(), showCardResources.begin(), showCardResources.end());
}

0 comments on commit c403517

Please sign in to comment.