gpu/kms: Remove max buffer size getter

It was unused.

https://gitlab.gnome.org/GNOME/mutter/issues/548
https://gitlab.gnome.org/GNOME/mutter/merge_requests/525
This commit is contained in:
Jonas Ådahl 2019-01-29 08:57:24 +01:00 committed by Georges Basile Stavracas Neto
parent a56a6a43aa
commit 02b549bd0d
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385
2 changed files with 0 additions and 19 deletions

View File

@ -71,9 +71,6 @@ struct _MetaGpuKms
drmModeConnector **connectors;
unsigned int n_connectors;
int max_buffer_width;
int max_buffer_height;
gboolean resources_init_failed_before;
MetaGpuKmsFlag flags;
@ -385,15 +382,6 @@ meta_gpu_kms_wait_for_flip (MetaGpuKms *gpu_kms,
return TRUE;
}
void
meta_gpu_kms_get_max_buffer_size (MetaGpuKms *gpu_kms,
int *max_width,
int *max_height)
{
*max_width = gpu_kms->max_buffer_width;
*max_height = gpu_kms->max_buffer_height;
}
int
meta_gpu_kms_get_fd (MetaGpuKms *gpu_kms)
{
@ -856,9 +844,6 @@ meta_gpu_kms_read_current (MetaGpu *gpu,
return TRUE;
}
gpu_kms->max_buffer_width = resources.resources->max_width;
gpu_kms->max_buffer_height = resources.resources->max_height;
/* Note: we must not free the public structures (output, crtc, monitor
mode and monitor info) here, they must be kept alive until the API
users are done with them after we emit monitors-changed, and thus

View File

@ -87,10 +87,6 @@ const char * meta_gpu_kms_get_file_path (MetaGpuKms *gpu_kms);
int64_t meta_gpu_kms_get_current_time_ns (MetaGpuKms *gpu_kms);
void meta_gpu_kms_get_max_buffer_size (MetaGpuKms *gpu_kms,
int *max_width,
int *max_height);
void meta_gpu_kms_set_power_save_mode (MetaGpuKms *gpu_kms,
uint64_t state);