[mutter] gpu/kms: Remove max buffer size getter



commit f3fd7cf92bc8fda9032941257849a9db6a590d6a
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Jan 29 08:57:24 2019 +0100

    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

 src/backends/native/meta-gpu-kms.c | 15 ---------------
 src/backends/native/meta-gpu-kms.h |  4 ----
 2 files changed, 19 deletions(-)
---
diff --git a/src/backends/native/meta-gpu-kms.c b/src/backends/native/meta-gpu-kms.c
index bf9843f02..133d5d2ae 100644
--- a/src/backends/native/meta-gpu-kms.c
+++ b/src/backends/native/meta-gpu-kms.c
@@ -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
diff --git a/src/backends/native/meta-gpu-kms.h b/src/backends/native/meta-gpu-kms.h
index 4df13c075..e62befd93 100644
--- a/src/backends/native/meta-gpu-kms.h
+++ b/src/backends/native/meta-gpu-kms.h
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]