diff options
Diffstat (limited to 'src/evemu.c')
| -rw-r--r-- | src/evemu.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/evemu.c b/src/evemu.c index 988ae7c..df6b250 100644 --- a/src/evemu.c +++ b/src/evemu.c | |||
| @@ -72,16 +72,6 @@ static void copy_bits(unsigned char *mask, const unsigned long *bits, int bytes) | |||
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | /** | ||
| 76 | * evemu_new() - allocate a new evemu device | ||
| 77 | * @name: wanted input device name (or NULL to leave empty) | ||
| 78 | * | ||
| 79 | * This function allocates a new evemu device structure and | ||
| 80 | * initializes all fields to zero. If name is non-null and the length | ||
| 81 | * is sane, it is copied to the device name. | ||
| 82 | * | ||
| 83 | * Returns NULL in case of memory failure. | ||
| 84 | */ | ||
| 85 | struct evemu_device *evemu_new(const char *name) | 75 | struct evemu_device *evemu_new(const char *name) |
| 86 | { | 76 | { |
| 87 | struct evemu_device *dev = calloc(1, sizeof(struct evemu_device)); | 77 | struct evemu_device *dev = calloc(1, sizeof(struct evemu_device)); |
| @@ -94,12 +84,6 @@ struct evemu_device *evemu_new(const char *name) | |||
| 94 | return dev; | 84 | return dev; |
| 95 | } | 85 | } |
| 96 | 86 | ||
| 97 | /** | ||
| 98 | * evemu_delete() - free and allocated evemu device | ||
| 99 | * @dev: the device to free | ||
| 100 | * | ||
| 101 | * The device pointer is invalidated by this call. | ||
| 102 | */ | ||
| 103 | void evemu_delete(struct evemu_device *dev) | 87 | void evemu_delete(struct evemu_device *dev) |
| 104 | { | 88 | { |
| 105 | free(dev); | 89 | free(dev); |
