shithub: acme

Download patch

ref: f725a9d662c423d818cc6cab01b58b2c104da2b9
parent: f99c9db1a0ac98f54eb258265905669133d4ba0d
author: glenda <glenda@cirno>
date: Tue Apr 1 04:48:09 EDT 2025

cleaned up unused tap channels

--- a/acme.c
+++ b/acme.c
@@ -190,8 +190,6 @@
 	kbdchan = initkbd();
 	if(kbdchan == nil)
 		error("can't find keyboard");
-	opentap = chancreate(sizeof(Channel*), 0);
-	closetap = chancreate(sizeof(Channel*), 0);
 	mainpid = getpid();
 	plumbeditfd = plumbopen("edit", OREAD|OCEXEC);
 	if(plumbeditfd >= 0){
@@ -417,7 +415,6 @@
 			
 			if(*s == 'c') {
 				bp = s + 1;
-				
 				chartorune(&r, bp);
 				
 				typetext = rowtype(&row, r, mouse->xy);
--- a/dat.h
+++ b/dat.h
@@ -9,7 +9,6 @@
 	Qindex,
 	Qlabel,
 	Qkbd,
-	Qtap,
 	Qlog,
 	Qnew,
 
@@ -581,10 +580,6 @@
 Channel	*cedit;		/* chan(int) */
 Channel	*cwarn;		/* chan(void*)[1] (really chan(unit)[1]) */
 Channel	*kbdread;	/* chan(Consreadmesg) */
-Channel *opentap;	/* open fromtap or totap */
-Channel *closetap;	/* close fromtap or totap */
-Channel	*fromtap;	/* keyboard output from the tap program */
-Channel *totap;		/* our keyboard input to tap program */
 
 
 #define	STACK	8192