Commit f3fd7cf9 authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Georges Basile Stavracas Neto

gpu/kms: Remove max buffer size getter

It was unused.

parent 5c500ad4
......@@ -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;
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;
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
......@@ -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);
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