mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 13:04:13 +00:00
remove request validation logic from the push method
This commit is contained in:
parent
18e1d449c0
commit
b2e45c7967
@ -76,22 +76,19 @@ void History::push(
|
|||||||
const Glib::ustring & REQUEST,
|
const Glib::ustring & REQUEST,
|
||||||
const bool & FOLLOW
|
const bool & FOLLOW
|
||||||
) {
|
) {
|
||||||
if (memory.empty() || memory.back().request != REQUEST)
|
memory.push_back(
|
||||||
{
|
|
||||||
memory.push_back(
|
|
||||||
{
|
|
||||||
REQUEST,
|
|
||||||
std::time(
|
|
||||||
nullptr
|
|
||||||
),
|
|
||||||
true
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
if (FOLLOW)
|
|
||||||
{
|
{
|
||||||
index = memory.size();
|
REQUEST,
|
||||||
|
std::time(
|
||||||
|
nullptr
|
||||||
|
),
|
||||||
|
true
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (FOLLOW)
|
||||||
|
{
|
||||||
|
index = memory.size();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user