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.
This commit is contained in:
Carlos Garnacho 2011-04-08 16:23:39 +02:00
parent 955f01cdf7
commit db74a6e816
6 changed files with 4 additions and 17 deletions

View File

@ -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,

View File

@ -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,

View File

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

View File

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

View File

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

View File

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