diff --git a/src/conio/cterm.c b/src/conio/cterm.c
index 9e08c445eef6d4ac1005f01ca6fa82ce115d9b81..cec8c3b4fc7f237609aed8ef889ed5e80e75c9e8 100644
--- a/src/conio/cterm.c
+++ b/src/conio/cterm.c
@@ -4769,8 +4769,6 @@ CIOLIBEXPORT char* CIOLIBCALL cterm_write(struct cterminal * cterm, const void *
 										/* CGTerm does nothing there... we */
 										/* Erase under cursor. */
 								TERM_XY(&x, &y);
-								l=WHEREX();
-								k=WHEREY();
 								if (x <= TERM_MAXX) {
 									sx = x;
 									sy = y;