diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-09-16 20:36:54 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-09-16 20:36:54 +0000 |
commit | f9af9719571e216119aa40c6a4910f1f91d1dcac (patch) | |
tree | 18e491f83200e8d75d82a6bc467dea7abfb7bdbb /src/frame.c | |
parent | d2fd733eb40fcb20dbed9a1b8ad1798e622e8f0f (diff) | |
download | emacs-f9af9719571e216119aa40c6a4910f1f91d1dcac.tar.gz |
(x_get_resource_string): Remove unused.
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/frame.c b/src/frame.c index dbcd67f0603..6726a7b918a 100644 --- a/src/frame.c +++ b/src/frame.c @@ -3893,31 +3893,6 @@ display_x_get_resource (dpyinfo, attribute, class, component, subclass) 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 |