summaryrefslogtreecommitdiff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-09-18 19:09:52 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-09-18 19:09:52 +0100
commit08e5191ff016f9df61bb157fc56cb9af6c599863 (patch)
tree70f0c8e0b4c351db1c979aff8b2d0c805f8cb9cd /Src/Modules
parent9c29a4f1f6297d97d4644b074f7246b980751e2b (diff)
downloadzsh-08e5191ff016f9df61bb157fc56cb9af6c599863.tar.gz
zsh-08e5191ff016f9df61bb157fc56cb9af6c599863.zip
users/19097: remove $functypetrace in favour of ref to $zsheval_context
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/parameter.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 02a642bec..0385a709e 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -640,41 +640,6 @@ funcfiletracegetfn(UNUSED(Param pm))
return ret;
}
-/* Functions for the functypestack special parameter. */
-
-static char **
-functypestackgetfn(UNUSED(Param pm))
-{
- Funcstack f;
- int num;
- char **ret, **p;
-
- for (f = funcstack, num = 0; f; f = f->prev, num++);
-
- ret = (char **) zhalloc((num + 1) * sizeof(char *));
-
- for (f = funcstack, p = ret; f; f = f->prev, p++)
- {
- switch (f->tp)
- {
- case FS_SOURCE:
- *p = "source";
- break;
-
- case FS_FUNC:
- *p = "function";
- break;
-
- case FS_EVAL:
- *p = "eval";
- break;
- }
- }
- *p = NULL;
-
- return ret;
-}
-
/* Functions for the builtins special parameter. */
/**/
@@ -2081,8 +2046,6 @@ static const struct gsu_array funcsourcetrace_gsu =
{ funcsourcetracegetfn, arrsetfn, stdunsetfn };
static const struct gsu_array funcfiletrace_gsu =
{ funcfiletracegetfn, arrsetfn, stdunsetfn };
-static const struct gsu_array functypestack_gsu =
-{ functypestackgetfn, arrsetfn, stdunsetfn };
static const struct gsu_array reswords_gsu =
{ reswordsgetfn, arrsetfn, stdunsetfn };
static const struct gsu_array disreswords_gsu =
@@ -2127,8 +2090,6 @@ static struct paramdef partab[] = {
scanpmfunctions),
SPECIALPMDEF("functrace", PM_ARRAY|PM_READONLY,
&functrace_gsu, NULL, NULL),
- SPECIALPMDEF("functypestack", PM_ARRAY|PM_READONLY,
- &functypestack_gsu, NULL, NULL),
SPECIALPMDEF("galiases", 0,
&pmgaliases_gsu, getpmgalias, scanpmgaliases),
SPECIALPMDEF("history", PM_READONLY,