Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
594665c1
Commit
594665c1
authored
Jun 28, 2016
by
Martin Flöser
Browse files
[server] Delete dead code: KeyboardInterface::Private::sendKeymap
Not called from anywhere.
parent
782f036c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/keyboard_interface.cpp
View file @
594665c1
...
...
@@ -24,9 +24,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
#include
"surface_interface.h"
// Qt
#include
<QVector>
// System
#include
<fcntl.h>
#include
<unistd.h>
// Wayland
#include
<wayland-server.h>
...
...
@@ -93,18 +90,6 @@ void KeyboardInterface::setKeymap(int fd, quint32 size)
d
->
sendKeymap
(
fd
,
size
);
}
void
KeyboardInterface
::
Private
::
sendKeymap
()
{
Q_ASSERT
(
resource
);
if
(
seat
->
isKeymapXkbCompatible
())
{
sendKeymap
(
seat
->
keymapFileDescriptor
(),
seat
->
keymapSize
());
}
else
{
int
nullFd
=
open
(
"/dev/null"
,
O_RDONLY
);
// krazy:exclude=syscalls
wl_keyboard_send_keymap
(
resource
,
WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP
,
nullFd
,
0
);
close
(
nullFd
);
}
}
void
KeyboardInterface
::
Private
::
sendKeymap
(
int
fd
,
quint32
size
)
{
if
(
!
resource
)
{
...
...
src/wayland/keyboard_interface_p.h
View file @
594665c1
...
...
@@ -33,7 +33,6 @@ class KeyboardInterface::Private : public Resource::Private
{
public:
Private
(
SeatInterface
*
s
,
wl_resource
*
parentResource
,
KeyboardInterface
*
q
);
void
sendKeymap
();
void
sendKeymap
(
int
fd
,
quint32
size
);
void
sendModifiers
();
void
sendModifiers
(
quint32
depressed
,
quint32
latched
,
quint32
locked
,
quint32
group
,
quint32
serial
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment