From 9d0df15e7c230cf85345768a20cb90c563e1ab2f Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Mon, 11 Nov 2024 12:20:44 +0100 Subject: [PATCH] Removing dead code; --- lib/Exd.xs | 9 --------- lib/Exd/FileFormat/Fontconfig.pm | 4 ---- 2 files changed, 13 deletions(-) diff --git a/lib/Exd.xs b/lib/Exd.xs index 4767666..548c9d7 100644 --- a/lib/Exd.xs +++ b/lib/Exd.xs @@ -9,13 +9,6 @@ FcConfig *old_system_config = NULL; -void -exd_fileformat_fontconfig__restore_system_config_c(SV *self) { - if (old_system_config != NULL) { - FcConfigSetCurrent(old_system_config); - } -} - void exd_fileformat_fontconfig__set_current_c(SV *self, char *font_dir) { if (old_system_config == NULL) { @@ -110,8 +103,6 @@ AV * exd_fileformat_fontconfig__list_fonts_c(SV *self, char *font_dir) void exd_fileformat_fontconfig__set_current_c(SV *self, char *font_dir) -void exd_fileformat_fontconfig__restore_system_config_c(SV *self) - MODULE = Exd PACKAGE = Exd::Fontconfig PREFIX = exd_fontconfig_ AV * exd_fontconfig__list_fonts_c(SV *self) diff --git a/lib/Exd/FileFormat/Fontconfig.pm b/lib/Exd/FileFormat/Fontconfig.pm index 25496b6..f6864af 100644 --- a/lib/Exd/FileFormat/Fontconfig.pm +++ b/lib/Exd/FileFormat/Fontconfig.pm @@ -22,10 +22,6 @@ sub set_current($self) { $self->_set_current_c( '' . $dir ); } -sub restore_system_config($self) { - $self->_restore_system_config_c; -} - sub list_fonts($self) { my $fonts = $self->_list_fonts_c($self->_font_dir->child('dir')); return $fonts;