From 728bb8e020a1ac1480787e715e7297eaaf6fad26 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 12 May 2008 18:31:26 +0000 Subject: [PATCH] (double_dollars): Remove dead code. --- src/ChangeLog | 14 +++++++++----- src/fileio.c | 37 ------------------------------------- 2 files changed, 9 insertions(+), 42 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7cdd8cc69ca..afc440673c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-05-12 Stefan Monnier + + * fileio.c (double_dollars): Remove dead code. + 2008-05-10 Eli Zaretskii * dired.c (Ffile_attributes, Fdirectory_files_and_attributes): @@ -19,7 +23,7 @@ * w32.c: Rename the_passwd_* to dflt_passwd_*. (dflt_group_name): New static variable. - (dflt_group): Renamed from the_group. + (dflt_group): Rename from the_group. (init_user_info): Init dflt_group fields. Get user's group name from LookupAccountSid. (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner) @@ -37,8 +41,8 @@ (get_file_owner_and_group): New functions. (stat): Use get_file_security_desc and get_file_owner_and_group to report the owner and primary group of each file. Don't ignore the - high 32 bits of file's size, now that st_size is 64-bit wide. Fix - test when to get true file attributes. + high 32 bits of file's size, now that st_size is 64-bit wide. + Fix test when to get true file attributes. (init_user_info): Use get_rid instead of equivalent inline code. (fstat): Don't ignore the high 32 bits of file's size. @@ -146,8 +150,8 @@ 2008-05-02 Juri Linkov * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command) - (Fread_variable, Fread_buffer, Fcompleting_read): Document - the DEFAULT argument as a list of default values in docstrings. + (Fread_variable, Fread_buffer, Fcompleting_read): Document the + DEFAULT argument as a list of default values in docstrings. 2008-05-01 Chong Yidong diff --git a/src/fileio.c b/src/fileio.c index 20e1cd551af..e86932f491c 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -6088,43 +6088,6 @@ then any auto-save counts as "recent". */) } /* Reading and completing file names */ -extern Lisp_Object Ffile_name_completion (), Ffile_name_all_completions (); -extern Lisp_Object Qcompletion_ignore_case; - -/* In the string VAL, change each $ to $$ and return the result. */ - -static Lisp_Object -double_dollars (val) - Lisp_Object val; -{ - register const unsigned char *old; - register unsigned char *new; - register int n; - int osize, count; - - osize = SBYTES (val); - - /* Count the number of $ characters. */ - for (n = osize, count = 0, old = SDATA (val); n > 0; n--) - if (*old++ == '$') count++; - if (count > 0) - { - old = SDATA (val); - val = make_uninit_multibyte_string (SCHARS (val) + count, - osize + count); - new = SDATA (val); - for (n = osize; n > 0; n--) - if (*old != '$') - *new++ = *old++; - else - { - *new++ = '$'; - *new++ = '$'; - old++; - } - } - return val; -} DEFUN ("next-read-file-uses-dialog-p", Fnext_read_file_uses_dialog_p, Snext_read_file_uses_dialog_p, 0, 0, 0, -- 2.11.4.GIT