Skip to content

Commit e1622a7

Browse files
committed
cody tidying - remove jsWarnAt and jsiConsolePrintPosition that were no longer used
1 parent 2b1bfdb commit e1622a7

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

src/jsinteractive.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,6 @@ void jsiConsoleReturnInputLine() {
377377
}
378378
}
379379
}
380-
void jsiConsolePrintPosition(struct JsLex *lex, size_t tokenPos) {
381-
jslPrintPosition((vcbprintf_callback)jsiConsolePrintString, 0, tokenPos);
382-
}
383380

384381
/**
385382
* Clear the input line of data.

src/jsinteractive.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ void jsiConsolePrintString_int(const char *str);
8888
#endif
8989
/// Print the contents of a string var - directly
9090
void jsiConsolePrintStringVar(JsVar *v);
91-
/// Transmit a position in the lexer (for reporting errors)
92-
void jsiConsolePrintPosition(struct JsLex *lex, size_t tokenPos);
9391
/// If the input line was shown in the console, remove it
9492
void jsiConsoleRemoveInputLine();
9593
/// Change what is in the inputline into something else (and update the console)

src/jsutils.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,6 @@ NO_INLINE void jsExceptionHere_flash(JsExceptionType type, const char *ffmt, ...
307307

308308
#endif
309309

310-
NO_INLINE void jsWarnAt(const char *message, struct JsLex *lex, size_t tokenPos) {
311-
jsiConsoleRemoveInputLine();
312-
jsiConsolePrint("WARNING: ");
313-
jsiConsolePrintString(message);
314-
if (lex) {
315-
jsiConsolePrint(" at ");
316-
jsiConsolePrintPosition(lex, tokenPos);
317-
} else
318-
jsiConsolePrint("\n");
319-
}
320-
321310
NO_INLINE void jsAssertFail(const char *file, int line, const char *expr) {
322311
static bool inAssertFail = false;
323312
bool wasInAssertFail = inAssertFail;

src/jsutils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ typedef enum {
354354
JSET_REFERENCEERROR
355355
} JsExceptionType;
356356

357-
void jsWarnAt(const char *message, struct JsLex *lex, size_t tokenPos);
358357
void jsAssertFail(const char *file, int line, const char *expr);
359358

360359
#ifndef FLASH_STR

0 commit comments

Comments
 (0)