Commit 9172dc74 authored by Martin Flöser's avatar Martin Flöser
Browse files

[server] Delete dead code: KeyboardInterface::Private::sendKeymap

Not called from anywhere.
parent 788d21b9
......@@ -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) {
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment