Compare commits

..

No commits in common. "d4903caafad4a76506cd542820feaa4391e0e29c" and "ffacff67cf97619f7ab4d69fcb057c4f9f3d1311" have entirely different histories.

2 changed files with 0 additions and 33 deletions

View File

@ -31,9 +31,6 @@ namespace BAN
const T& front() const; const T& front() const;
T& front(); T& front();
const T& back() const;
T& back();
size_type size() const { return m_size; } size_type size() const { return m_size; }
bool empty() const { return size() == 0; } bool empty() const { return size() == 0; }
bool full() const { return size() == capacity(); } bool full() const { return size() == capacity(); }
@ -101,20 +98,6 @@ namespace BAN
return *element_at(m_first); return *element_at(m_first);
} }
template<typename T, size_t S>
const T& CircularQueue<T, S>::back() const
{
ASSERT(!empty());
return *element_at((m_first + m_size - 1) % capacity());
}
template<typename T, size_t S>
T& CircularQueue<T, S>::back()
{
ASSERT(!empty());
return *element_at((m_first + m_size - 1) % capacity());
}
template<typename T, size_t S> template<typename T, size_t S>
const T* CircularQueue<T, S>::element_at(size_type index) const const T* CircularQueue<T, S>::element_at(size_type index) const
{ {

View File

@ -165,22 +165,6 @@ namespace Kernel::Input
for (int i = 0; i < event_count; i++) for (int i = 0; i < event_count; i++)
{ {
if (!m_event_queue.empty() && m_event_queue.back().type == events[i].type)
{
if (events[i].type == MouseEventType::MouseMoveEvent)
{
m_event_queue.back().move_event.rel_x += events[i].move_event.rel_x;
m_event_queue.back().move_event.rel_y += events[i].move_event.rel_y;
continue;
}
if (events[i].type == MouseEventType::MouseScrollEvent)
{
m_event_queue.back().scroll_event.scroll += events[i].scroll_event.scroll;
continue;
}
}
if (m_event_queue.full()) if (m_event_queue.full())
{ {
dwarnln("PS/2 event queue full"); dwarnln("PS/2 event queue full");