summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-04-26 15:54:06 +0000
committerClint Adams <clint@users.sourceforge.net>2001-04-26 15:54:06 +0000
commitee404f2cfff0ff79f7bdf7d16b37f56ee295d263 (patch)
treeab2bf3606a428871a11c400f07ed18f288b29516 /Src/Modules
parent6dc04f1329e79d5bb0934c33413c4b1af9431dfc (diff)
downloadzsh-ee404f2cfff0ff79f7bdf7d16b37f56ee295d263.tar.gz
zsh-ee404f2cfff0ff79f7bdf7d16b37f56ee295d263.tar.xz
zsh-ee404f2cfff0ff79f7bdf7d16b37f56ee295d263.zip
14125: remove static incleanup flag because it is unused
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/termcap.c10
-rw-r--r--Src/Modules/terminfo.c10
2 files changed, 0 insertions, 20 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index 4ce73bd45..ddba69a6d 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -147,10 +147,6 @@ static struct builtin bintab[] = {
     BUILTIN("echotc", 0, bin_echotc, 1, -1, 0, NULL, NULL),
 };
 
-/* This says if we are cleaning up when the module is unloaded. */
-
-static int incleanup;
-
 /**/
 #ifdef HAVE_TGETENT
 
@@ -363,8 +359,6 @@ scantermcap(HashTable ht, ScanFunc func, int flags)
 int
 setup_(Module m)
 {
-    incleanup = 0;
-
     return 0;
 }
 
@@ -391,11 +385,7 @@ cleanup_(Module m)
 {
 #ifdef HAVE_TGETENT
     Param pm;
-#endif
-
-    incleanup = 1;
 
-#ifdef HAVE_TGETENT
     if ((pm = (Param) paramtab->getnode(paramtab, termcap_nam)) &&
 	pm == termcap_pm) {
 	pm->flags &= ~PM_READONLY;
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index 5b9d0bdbd..3f62f0367 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -109,10 +109,6 @@ static struct builtin bintab[] = {
     BUILTIN("echoti", 0, bin_echoti, 1, -1, 0, NULL, NULL),
 };
 
-/* This says if we are cleaning up when the module is unloaded. */
-
-static int incleanup;
-
 /**/
 #ifdef HAVE_TIGETSTR
 
@@ -337,8 +333,6 @@ scanterminfo(HashTable ht, ScanFunc func, int flags)
 int
 setup_(Module m)
 {
-    incleanup = 0;
-
     return 0;
 }
 
@@ -365,11 +359,7 @@ cleanup_(Module m)
 {
 #ifdef HAVE_TIGETSTR
     Param pm;
-#endif
-
-    incleanup = 1;
 
-#ifdef HAVE_TIGETSTR
     if ((pm = (Param) paramtab->getnode(paramtab, terminfo_nam)) &&
 	pm == terminfo_pm) {
 	pm->flags &= ~PM_READONLY;