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

Not called from anywhere.
This commit is contained in:
Martin Gräßlin 2016-06-28 17:25:34 +02:00
parent 782f036c0d
commit 594665c1df
2 changed files with 0 additions and 16 deletions

View file

@ -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) {

View file

@ -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);