Remove unused function

This commit is contained in:
Geert Janssens 2023-02-11 18:22:54 +01:00
parent 4737665289
commit 57c525fb19

View File

@ -370,25 +370,14 @@ bool GncPreTrans::is_part_of (std::shared_ptr<GncPreTrans> parent)
parent->m_errors.empty(); // A GncPreTrans with errors can never be a parent
}
static StrVec gen_err_strvec (ErrMap& errors, bool check_accts_mapped = false)
{
auto full_error = StrVec();
auto add_err = [check_accts_mapped](StrVec a, const ErrPair& b)->StrVec
{ if (!check_accts_mapped ||
((b.first != GncTransPropType::ACCOUNT) &&
(b.first != GncTransPropType::TACCOUNT)))
a.emplace_back(b.second);
return a; };
full_error = std::accumulate (errors.cbegin(), errors.cend(), full_error, add_err);
return full_error;
}
ErrMap GncPreTrans::errors ()
{
return m_errors;
}
{
}
void GncPreSplit::set (GncTransPropType prop_type, const std::string& value)
{
try