aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-04 14:20:01 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-04 14:20:01 -0700
commit69446be1ee063771f2e0b498a50f9b0787ea70c7 (patch)
treebe5ecf3a473052475218df605d350a204666c750 /expand.cpp
parentcc90f9cf803bc4aba928b2a80be451d9b717c5f0 (diff)
Signal handling cleanup and improved safety
Fixes issue where you couldn't control-C out of a loop (https://github.com/ridiculousfish/fishfish/issues/13) Also stops doing memory allocation in the signal handler (oops) https://github.com/ridiculousfish/fishfish/issues/27
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/expand.cpp b/expand.cpp
index 9e19cec0..28e2c690 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -1341,14 +1341,6 @@ static void expand_tilde_internal( wcstring &input )
}
}
-static wchar_t * expand_tilde_internal_compat( wchar_t *in )
-{
- wcstring tmp = in;
- expand_tilde_internal(tmp);
- free(in);
- return wcsdup(tmp.c_str());
-}
-
void expand_tilde( wcstring &input)
{
if( ! input.empty() && input.at(0) == L'~' )