mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
kms: Remove now unused API to get file descriptor
The last user switched to using MetaDeviceFile, so time to clean up. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1828>
This commit is contained in:
parent
10c4bc6e3f
commit
173d895d53
@ -104,12 +104,6 @@ meta_gpu_kms_get_kms_device (MetaGpuKms *gpu_kms)
|
||||
return gpu_kms->kms_device;
|
||||
}
|
||||
|
||||
int
|
||||
meta_gpu_kms_get_fd (MetaGpuKms *gpu_kms)
|
||||
{
|
||||
return gpu_kms->fd;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
meta_gpu_kms_get_id (MetaGpuKms *gpu_kms)
|
||||
{
|
||||
@ -399,16 +393,12 @@ meta_gpu_kms_new (MetaBackendNative *backend_native,
|
||||
GError **error)
|
||||
{
|
||||
MetaGpuKms *gpu_kms;
|
||||
int kms_fd;
|
||||
|
||||
kms_fd = meta_kms_device_leak_fd (kms_device);
|
||||
|
||||
gpu_kms = g_object_new (META_TYPE_GPU_KMS,
|
||||
"backend", backend_native,
|
||||
NULL);
|
||||
|
||||
gpu_kms->kms_device = kms_device;
|
||||
gpu_kms->fd = kms_fd;
|
||||
|
||||
meta_gpu_kms_read_current (META_GPU (gpu_kms), NULL);
|
||||
|
||||
@ -420,7 +410,6 @@ meta_gpu_kms_init (MetaGpuKms *gpu_kms)
|
||||
{
|
||||
static uint32_t id = 0;
|
||||
|
||||
gpu_kms->fd = -1;
|
||||
gpu_kms->id = ++id;
|
||||
}
|
||||
|
||||
|
@ -51,8 +51,6 @@ gboolean meta_gpu_kms_disable_modifiers (MetaGpuKms *gpu_kms);
|
||||
|
||||
MetaKmsDevice * meta_gpu_kms_get_kms_device (MetaGpuKms *gpu_kms);
|
||||
|
||||
int meta_gpu_kms_get_fd (MetaGpuKms *gpu_kms);
|
||||
|
||||
uint32_t meta_gpu_kms_get_id (MetaGpuKms *gpu_kms);
|
||||
|
||||
const char * meta_gpu_kms_get_file_path (MetaGpuKms *gpu_kms);
|
||||
|
@ -74,12 +74,6 @@ meta_kms_device_get_impl_device (MetaKmsDevice *device)
|
||||
return device->impl_device;
|
||||
}
|
||||
|
||||
int
|
||||
meta_kms_device_leak_fd (MetaKmsDevice *device)
|
||||
{
|
||||
return meta_kms_impl_device_leak_fd (device->impl_device);
|
||||
}
|
||||
|
||||
const char *
|
||||
meta_kms_device_get_path (MetaKmsDevice *device)
|
||||
{
|
||||
|
@ -31,8 +31,6 @@ G_DECLARE_FINAL_TYPE (MetaKmsDevice, meta_kms_device,
|
||||
|
||||
MetaKms * meta_kms_device_get_kms (MetaKmsDevice *device);
|
||||
|
||||
int meta_kms_device_leak_fd (MetaKmsDevice *device);
|
||||
|
||||
const char * meta_kms_device_get_path (MetaKmsDevice *device);
|
||||
|
||||
const char * meta_kms_device_get_driver_name (MetaKmsDevice *device);
|
||||
|
@ -677,15 +677,6 @@ meta_kms_impl_device_get_fd (MetaKmsImplDevice *impl_device)
|
||||
return meta_device_file_get_fd (priv->device_file);
|
||||
}
|
||||
|
||||
int
|
||||
meta_kms_impl_device_leak_fd (MetaKmsImplDevice *impl_device)
|
||||
{
|
||||
MetaKmsImplDevicePrivate *priv =
|
||||
meta_kms_impl_device_get_instance_private (impl_device);
|
||||
|
||||
return meta_device_file_get_fd (priv->device_file);
|
||||
}
|
||||
|
||||
MetaKmsFeedback *
|
||||
meta_kms_impl_device_process_update (MetaKmsImplDevice *impl_device,
|
||||
MetaKmsUpdate *update,
|
||||
|
@ -124,8 +124,6 @@ drmModePropertyPtr meta_kms_impl_device_find_property (MetaKmsImplDevice *
|
||||
|
||||
int meta_kms_impl_device_get_fd (MetaKmsImplDevice *impl_device);
|
||||
|
||||
int meta_kms_impl_device_leak_fd (MetaKmsImplDevice *impl_device);
|
||||
|
||||
void meta_kms_impl_device_update_states (MetaKmsImplDevice *impl_device);
|
||||
|
||||
void meta_kms_impl_device_predict_states (MetaKmsImplDevice *impl_device,
|
||||
|
Loading…
Reference in New Issue
Block a user