Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove more unused code. - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 2c53b3deb305e9b562c5bd39d8b33e94571961c3
parent 0afba348f33f094d58c3bf88eb9d8cc4dd77d60b
Author: Rob King <[email protected]>
Date: Tue, 4 Oct 2016 01:35:52 -0500
Remove more unused code.
Diffstat:
include/libg.h | 1 -
libXg/xtbinit.c | 11 -----------
samterm/main.c | 6 ++----
3 files changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/include/libg.h b/include/libg.h
@@ -218,7 +218,6 @@ extern void raisewindow(void);
/* Extra functions supplied by libXg */
extern int snarfswap(char*, int, char**);
-extern int scrollfwdbut(void);
enum{
Emouse = 1,
diff --git a/libXg/xtbinit.c b/libXg/xtbinit.c
@@ -454,17 +454,6 @@ wrcolmap(Bitmap *b, RGB *map)
}
}
-int
-scrollfwdbut(void)
-{
- Arg arg;
- Boolean v;
-
- XtSetArg(arg, XtNscrollForwardR, &v);
- XtGetValues(widg, &arg, 1);
- return v ? 3 : 1;
-}
-
void
einit(uint64_t keys)
{
diff --git a/samterm/main.c b/samterm/main.c
@@ -38,7 +38,6 @@ main(int argc, char *argv[])
Text *t;
Rectangle r;
Flayer *nwhich;
- int fwdbut;
char rcpath[PATH_MAX + 1] = {0};
FILE *rc = NULL;
@@ -74,7 +73,6 @@ main(int argc, char *argv[])
}
getscreen(argc, argv);
- fwdbut = scrollfwdbut();
initio();
scratch = alloc(100*RUNESIZE);
nscralloc = 100;
@@ -124,7 +122,7 @@ main(int argc, char *argv[])
if(nwhich!=which)
current(nwhich);
else if(scr)
- scroll(which, 1, fwdbut == 3 ? 1 : 3);
+ scroll(which, 1, 1);
else{
t=(Text *)which->user1;
if(flselect(which)){
@@ -141,7 +139,7 @@ main(int argc, char *argv[])
menu2hit();
}else if((mouse.buttons&4)){
if(scr)
- scroll(which, 3, fwdbut == 3 ? 3 : 1);
+ scroll(which, 3, 3);
else
menu3hit();
}
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.