mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: Removed obsolete getExclusions
This commit is contained in:
parent
10fb92e97f
commit
1d84152185
2 changed files with 0 additions and 17 deletions
16
src/data.cpp
16
src/data.cpp
|
@ -314,22 +314,6 @@ std::vector <Range> getAllExclusions (
|
||||||
return addRanges (range, results, exclusionRanges);
|
return addRanges (range, results, exclusionRanges);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
std::vector <Exclusion> getExclusions (const Rules& rules)
|
|
||||||
{
|
|
||||||
// Add exclusions from configuration.
|
|
||||||
std::vector <Exclusion> all;
|
|
||||||
for (auto& name : rules.all ("exclusions."))
|
|
||||||
all.push_back (Exclusion (lowerCase (name), rules.get (name)));
|
|
||||||
|
|
||||||
/*
|
|
||||||
std::cout << "# getExclusions:\n";
|
|
||||||
for (auto& e : all)
|
|
||||||
std::cout << "# " << e.dump () << "\n";
|
|
||||||
*/
|
|
||||||
return all;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::vector <Interval> getAllInclusions (Database& database)
|
std::vector <Interval> getAllInclusions (Database& database)
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
// data.cpp
|
// data.cpp
|
||||||
Interval getFilter (const CLI&);
|
Interval getFilter (const CLI&);
|
||||||
std::vector <Range> getHolidays (const Rules&);
|
std::vector <Range> getHolidays (const Rules&);
|
||||||
std::vector <Exclusion> getExclusions (const Rules&);
|
|
||||||
std::vector <Range> getAllExclusions (const Rules&, const Range&);
|
std::vector <Range> getAllExclusions (const Rules&, const Range&);
|
||||||
std::vector <Interval> getAllInclusions (Database&);
|
std::vector <Interval> getAllInclusions (Database&);
|
||||||
std::vector <Interval> subset (const Interval&, const std::vector <Interval>&);
|
std::vector <Interval> subset (const Interval&, const std::vector <Interval>&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue