Removed more unused code. - sam - An updated version of the sam text editor.
(HTM) git clone git://vernunftzentrum.de/sam.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 0141a9eb504b9de8d76ad08f0dd1606c9b24da9a
(DIR) parent ce2e8bbdf63deb582d1e7b8c270e5f7e885e0d1f
(HTM) Author: Rob King <jking@deadpixi.com>
Date: Tue, 4 Oct 2016 10:38:19 -0500
Removed more unused code.
Diffstat:
include/libc.h | 2 +-
sam/sam.c | 2 +-
sam/sam.h | 1 -
sam/unix.c | 11 +----------
4 files changed, 3 insertions(+), 13 deletions(-)
---
(DIR) diff --git a/include/libc.h b/include/libc.h
@@ -28,6 +28,6 @@ extern int chartorune(wchar_t*, char*);
/*
* Miscellaneous functions
*/
-extern int notify (void(*)(void *, char *));
+extern int notify (void);
extern void exits(char*);
(DIR) diff --git a/sam/sam.c b/sam/sam.c
@@ -108,7 +108,7 @@ main(int argc, char *argv[])
if(!dflag)
startup(machine, Rflag, arg, ap);
Fstart();
- notify(notifyf);
+ notify();
if(argc > 0){
for(i=0; i<argc; i++)
if(!setjmp(mainloop)){
(DIR) diff --git a/sam/sam.h b/sam/sam.h
@@ -224,7 +224,6 @@ void moveto(File*, Range);
File *newfile(void);
void nextmatch(File*, String*, Posn, int);
int newtmp(void);
-void notifyf(void*, char*);
void panic(char*);
void printposn(File*, int);
void print_ss(char*, String*, String*);
(DIR) diff --git a/sam/unix.c b/sam/unix.c
@@ -104,23 +104,14 @@ hup(int sig)
}
int
-notify (void(*f)(void *, char *))
+notify(void)
{
signal(SIGINT, SIG_IGN);
signal(SIGHUP, hup);
signal(SIGPIPE, SIG_IGN);
-#ifdef v10
- close(3); /* redirect v10 /dev/tty */
- open("/dev/null", 2);
-#endif
return 1;
}
-void
-notifyf(void *a, char *b) /* never called */
-{
-}
-
int
newtmp(void)
{