[vte] widget: Remove unused function
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Remove unused function
- Date: Mon, 19 Oct 2020 19:15:19 +0000 (UTC)
commit 535d22bb47285a53d22bbf3a3480304f7278ce0b
Author: Christian Persch <chpe src gnome org>
Date: Mon Oct 19 21:14:43 2020 +0200
widget: Remove unused function
[gtk4 preparation]
src/vte.cc | 6 +++---
src/widget.hh | 5 -----
2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index c544cfd0..0e4ba382 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4563,9 +4563,9 @@ Terminal::widget_key_press(vte::platform::KeyEvent const& event)
_vte_debug_print(VTE_DEBUG_EVENTS,
"Keypress, modifiers=0x%x, "
- "keyval=0x%x, raw string=`%s'.\n",
- m_modifiers,
- keyval, event.string());
+ "keyval=0x%x\n",
+ m_modifiers,
+ keyval);
/* We steal many keypad keys here. */
if (!m_im_preedit_active) {
diff --git a/src/widget.hh b/src/widget.hh
index 49d05a5a..5fe53ac4 100644
--- a/src/widget.hh
+++ b/src/widget.hh
@@ -137,11 +137,6 @@ public:
constexpr auto is_key_press() const noexcept { return type() == Type::eKEY_PRESS; }
constexpr auto is_key_release() const noexcept { return type() == Type::eKEY_RELEASE; }
- auto string() const noexcept
- {
- return reinterpret_cast<GdkEventKey*>(platform_event())->string;
- }
-
private:
unsigned m_modifiers;
unsigned m_keyval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]