From c3afdefd1556e659eeb35fe6095f0ceeab7da7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 11:08:47 +0200 Subject: [PATCH] Remove unused meta_output_is_laptop Unused since cbb2a286f2a7 ("monitor-manager: Don't use wacky physical dimensions in display name"). Part-of: --- src/backends/meta-output.c | 16 ---------------- src/backends/meta-output.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/src/backends/meta-output.c b/src/backends/meta-output.c index 1889165c4..d24f9afec 100644 --- a/src/backends/meta-output.c +++ b/src/backends/meta-output.c @@ -374,22 +374,6 @@ meta_output_info_parse_edid (MetaOutputInfo *output_info, } } -gboolean -meta_output_is_laptop (MetaOutput *output) -{ - const MetaOutputInfo *output_info = meta_output_get_info (output); - - switch (output_info->connector_type) - { - case META_CONNECTOR_TYPE_eDP: - case META_CONNECTOR_TYPE_LVDS: - case META_CONNECTOR_TYPE_DSI: - return TRUE; - default: - return FALSE; - } -} - static void meta_output_set_property (GObject *object, guint prop_id, diff --git a/src/backends/meta-output.h b/src/backends/meta-output.h index 9681e3f4d..b9de26095 100644 --- a/src/backends/meta-output.h +++ b/src/backends/meta-output.h @@ -184,8 +184,6 @@ void meta_output_info_parse_edid (MetaOutputInfo *output_info, gboolean meta_output_info_is_color_space_supported (const MetaOutputInfo *output_info, MetaOutputColorspace color_space); -gboolean meta_output_is_laptop (MetaOutput *output); - G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaOutputInfo, meta_output_info_unref) #define META_TYPE_OUTPUT (meta_output_get_type ())