about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-21 13:29:51 -0400
committerJune McEnroe <june@causal.agency>2018-08-21 13:29:51 -0400
commit642e1fe5360044ebe4207b1eb2817472fc6ddb36 (patch)
treeb7ab0dbb6eab1bb1c3c7624601162d2f61884d77 /client.c
parentClean up Makefile (diff)
downloadtorus-642e1fe5360044ebe4207b1eb2817472fc6ddb36.tar.gz
torus-642e1fe5360044ebe4207b1eb2817472fc6ddb36.zip
Remove spawns
This reverts ce13621292bdfeafd7c6561c432a1d96deccbd3a and commits after
it.
Diffstat (limited to 'client.c')
-rw-r--r--client.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/client.c b/client.c
index 7af6950..1e3421b 100644
--- a/client.c
+++ b/client.c
@@ -58,14 +58,6 @@ static void clientPut(uint8_t color, char cell) {
 	clientMessage(msg);
 }
 
-static void clientSpawn(uint8_t spawn) {
-	struct ClientMessage msg = {
-		.type = CLIENT_SPAWN,
-		.spawn = spawn,
-	};
-	clientMessage(msg);
-}
-
 static void clientMap(void) {
 	struct ClientMessage msg = { .type = CLIENT_MAP };
 	clientMessage(msg);
@@ -162,13 +154,6 @@ static void inputNormal(int c) {
 		break; case ESC: input.mode = MODE_NORMAL;
 
 		break; case 'q': endwin(); exit(EX_OK);
-		break; case 'Q': {
-			if ((input.color & 0x07) < ARRAY_LEN(SPAWNS)) {
-				clientSpawn(input.color & 0x07);
-			} else {
-				clientSpawn(0);
-			}
-		}
 		break; case 'm': clientMap();
 
 		break; case 'i': insertMode(1, 0);
span>Parse control commandsJune McEnroe 2020-08-15Read service pipesJune McEnroe 2020-08-15Implement non-blocking line-buffered readingJune McEnroe 2020-08-15Generate tags fileJune McEnroe 2020-08-15Just use CLOCK_MONOTONIC and clean up includesJune McEnroe 2020-08-15Reap childrenJune McEnroe 2020-08-14Implement serviceSignal, serviceStop, serviceRestartJune McEnroe 2020-08-14Reset restartInterval and restartDeadline on startJune McEnroe 2020-08-14Switch to timespec for timeoutsJune McEnroe 2020-08-14Implement serviceStartJune McEnroe 2020-08-14Flesh out Service structJune McEnroe 2020-08-14Build environment for servicesJune McEnroe 2020-08-14Implement spawntab parsingJune McEnroe 2020-08-14Open syslog, daemonize, write PIDJune McEnroe 2020-08-14Implement user and group lookupJune McEnroe 2020-08-14Add install targetJune McEnroe 2020-08-14Add spawnd skeletonJune McEnroe