Skip to content

Commit

Permalink
Main: remove empty function begin_input_event()
Browse files Browse the repository at this point in the history
This has been an empty placeholder for a long time, but it turns out
we never needed it, so let's remove it for good.
  • Loading branch information
MaxKellermann committed Sep 10, 2024
1 parent 276a0aa commit 89169ec
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/AsyncUserInput.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ AsyncUserInput::OnSocketReady(unsigned) noexcept
getmouse(&event);
#endif

begin_input_event();

if (!handler.OnMouse({event.x, event.y}, event.bstate))
return;

Expand All @@ -64,7 +62,6 @@ AsyncUserInput::OnSocketReady(unsigned) noexcept
#endif

if (handler.OnRawKey(key)) {
// TODO: begin_input_event() ?
end_input_event();
return;
}
Expand All @@ -73,8 +70,6 @@ AsyncUserInput::OnSocketReady(unsigned) noexcept
if (cmd == Command::NONE)
return;

begin_input_event();

if (!handler.OnCommand(cmd))
return;

Expand Down
5 changes: 0 additions & 5 deletions src/Main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,6 @@ Instance::OnUpdateTimer() noexcept
ScheduleUpdateTimer();
}

void
begin_input_event() noexcept
{
}

void end_input_event() noexcept
{
auto &client = global_instance->GetClient();
Expand Down
2 changes: 0 additions & 2 deletions src/lirc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ LircInput::OnSocketReady(unsigned) noexcept
{
char *code, *txt;

begin_input_event();

if (lirc_nextcode(&code) == 0) {
while (lirc_code2char(lc, code, &txt) == 0 && txt != nullptr) {
const auto cmd = get_key_command_from_name(txt);
Expand Down
3 changes: 0 additions & 3 deletions src/ncmpc.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
class ScreenManager;
extern ScreenManager *screen;

void
begin_input_event() noexcept;

void
end_input_event() noexcept;

0 comments on commit 89169ec

Please sign in to comment.