From cb00e2831a91c84db8baac4e7d37a04f7d8d9a43 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 15 Nov 2010 10:18:48 -0500 Subject: [PATCH] Removed a few unneeded calls to scr_flush() --- citadel/textclient/citadel.c | 3 --- citadel/textclient/commands.c | 3 --- citadel/textclient/messages.c | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/citadel/textclient/citadel.c b/citadel/textclient/citadel.c index 532f4467f..91a2d786c 100644 --- a/citadel/textclient/citadel.c +++ b/citadel/textclient/citadel.c @@ -604,7 +604,6 @@ void forget_all_rooms_on(CtdlIPC *ipc, int ffloor) int r; /* IPC response code */ scr_printf("Forgetting all rooms on %s...\n", &floorlist[ffloor][0]); - scr_flush(); remove_march("_FLOOR_", ffloor); r = CtdlIPCKnownRooms(ipc, AllAccessibleRooms, ffloor, &flist, buf); if (r / 100 != 1) { @@ -1408,7 +1407,6 @@ int shift(int argc, char **argv, int start, int count) { static void statusHook(char *s) { scr_printf(s); - scr_flush(); } /* @@ -1609,7 +1607,6 @@ int main(int argc, char **argv) get_serv_info(ipc, telnet_client_host); scr_printf("%-24s\n%s\n%s\n", ipc->ServInfo.software, ipc->ServInfo.humannode, ipc->ServInfo.site_location); - scr_flush(); screenwidth = 80; /* default screen dimensions */ screenheight = 24; diff --git a/citadel/textclient/commands.c b/citadel/textclient/commands.c index 6371cb46e..7e5a80e88 100644 --- a/citadel/textclient/commands.c +++ b/citadel/textclient/commands.c @@ -1021,7 +1021,6 @@ int getcmd(CtdlIPC *ipc, char *argbuf) scr_printf("\n%s", room_name); color(DIM_WHITE); scr_printf("%c ", room_prompt(room_flags)); - scr_flush(); while (1) { ch = inkey(); @@ -1421,7 +1420,6 @@ void color(int colornum) (colornum & 7), rc_color_use_bg); - scr_flush(); } } @@ -1430,7 +1428,6 @@ void cls(int colornum) if (enable_color) { printf("\033[4%dm\033[2J\033[H\033[0m", colornum ? colornum : rc_color_use_bg); - scr_flush(); } } diff --git a/citadel/textclient/messages.c b/citadel/textclient/messages.c index 3359d7514..77ec79e62 100644 --- a/citadel/textclient/messages.c +++ b/citadel/textclient/messages.c @@ -1579,7 +1579,7 @@ RAGAIN: pagin = ((arcflag == 0) if ((quotflag) || (arcflag)) { screenwidth = hold_sw; } -RMSGREAD: scr_flush(); +RMSGREAD: highest_msg_read = msg_arr[a]; if (quotflag) { fclose(dest); @@ -1729,7 +1729,6 @@ RMSGREAD: scr_flush(); scr_printf("\r%79s\r", ""); else scr_printf("\n"); - scr_flush(); } DONE_QUOTING: switch (e) { case '?': -- 2.39.2