Mercurial > emacs
changeset 105047:c65e464f3acc
(x_get_resource_string): Remove unused.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 16 Sep 2009 20:36:54 +0000 |
parents | c0cf67a653c9 |
children | 1eb4a432a8ae |
files | src/ChangeLog src/frame.c |
diffstat | 2 files changed, 4 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Wed Sep 16 17:54:13 2009 +0000 +++ b/src/ChangeLog Wed Sep 16 20:36:54 2009 +0000 @@ -1,3 +1,7 @@ +2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca> + + * frame.c (x_get_resource_string): Remove unused. + 2009-09-15 Jan Djärv <jan.h.d@swipnet.se> * xterm.c (x_new_font): Call change_frame_size before calling
--- a/src/frame.c Wed Sep 16 17:54:13 2009 +0000 +++ b/src/frame.c Wed Sep 16 20:36:54 2009 +0000 @@ -3893,31 +3893,6 @@ attribute, class, component, subclass); } -/* Used when C code wants a resource value. */ - -char * -x_get_resource_string (attribute, class) - char *attribute, *class; -{ - char *name_key; - char *class_key; - struct frame *sf = SELECTED_FRAME (); - - /* Allocate space for the components, the dots which separate them, - and the final '\0'. */ - name_key = (char *) alloca (SBYTES (Vinvocation_name) - + strlen (attribute) + 2); - class_key = (char *) alloca ((sizeof (EMACS_CLASS) - 1) - + strlen (class) + 2); - - sprintf (name_key, "%s.%s", SDATA (Vinvocation_name), attribute); - sprintf (class_key, "%s.%s", EMACS_CLASS, class); - - return x_get_string_resource (FRAME_X_DISPLAY_INFO (sf)->xrdb, - name_key, class_key); -} - - /* Return the value of parameter PARAM. First search ALIST, then Vdefault_frame_alist, then the X defaults