Commit db74a6e8 authored by Carlos Garnacho's avatar Carlos Garnacho

GdkDevice: Remove duplicate private function

_gdk_device_get_axis_use() dates back to pre-sealing, when the
xi2 work began, this remaining can be gone with a public
gdk_device_get_axis_use() function already in place.
parent 955f01cd
......@@ -1400,16 +1400,6 @@ find_axis_info (GArray *array,
return NULL;
}
GdkAxisUse
_gdk_device_get_axis_use (GdkDevice *device,
guint index_)
{
GdkAxisInfo info;
info = g_array_index (device->axes, GdkAxisInfo, index_);
return info.use;
}
gboolean
_gdk_device_translate_window_coord (GdkDevice *device,
GdkWindow *window,
......
......@@ -127,9 +127,6 @@ guint _gdk_device_add_axis (GdkDevice *device,
void _gdk_device_set_keys (GdkDevice *device,
guint num_keys);
GdkAxisUse _gdk_device_get_axis_use (GdkDevice *device,
guint index);
gboolean _gdk_device_translate_window_coord (GdkDevice *device,
GdkWindow *window,
guint index,
......
......@@ -326,7 +326,7 @@ _gdk_device_wintab_translate_axes (GdkDeviceWintab *device_wintab,
{
GdkAxisUse use;
use = _gdk_device_get_axis_use (device, i);
use = gdk_device_get_axis_use (device, i);
switch (use)
{
......
......@@ -613,7 +613,7 @@ _gdk_x11_device_xi_translate_axes (GdkDevice *device,
{
GdkAxisUse use;
use = _gdk_device_get_axis_use (device, i);
use = gdk_device_get_axis_use (device, i);
switch (use)
{
......
......@@ -205,7 +205,7 @@ gdk_x11_device_xi2_get_state (GdkDevice *device,
continue;
value = ((XIValuatorClassInfo *) class_info)->value;
use = _gdk_device_get_axis_use (device, j);
use = gdk_device_get_axis_use (device, j);
switch (use)
{
......
......@@ -823,7 +823,7 @@ translate_axes (GdkDevice *device,
if (!XIMaskIsSet (valuators->mask, i))
continue;
use = _gdk_device_get_axis_use (device, i);
use = gdk_device_get_axis_use (device, i);
val = *vals++;
switch (use)
......
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