From 1e6492ef93b467e008a1854a83e42edddd948dd2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 4 Feb 2016 23:57:21 -0800 Subject: Bits of cleanup of expand_string Remove some unnecessary variables, make some things not pointers --- src/expand.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/expand.h') diff --git a/src/expand.h b/src/expand.h index b07186e4..e209fb26 100644 --- a/src/expand.h +++ b/src/expand.h @@ -184,19 +184,6 @@ void expand_tilde(wcstring &input); /** Perform the opposite of tilde expansion on the string, which is modified in place */ wcstring replace_home_directory_with_tilde(const wcstring &str); -/** - Test if the specified argument is clean, i.e. it does not contain - any tokens which need to be expanded or otherwise altered. Clean - strings can be passed through expand_string and expand_one without - changing them. About two thirds of all strings are clean, so - skipping expansion on them actually does save a small amount of - time, since it avoids multiple memory allocations during the - expansion process. - - \param in the string to test -*/ -int expand_is_clean(const wchar_t *in); - /** Testing function for getting all process names. */ -- cgit v1.2.3