[server] Delete dead code: KeyboardInterface::Private::sendKeymap
Not called from anywhere.
This commit is contained in:
parent
782f036c0d
commit
594665c1df
2 changed files with 0 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue