refactor: remove unused console log disabling function from helper utilities

This commit is contained in:
Zack Spear
2025-01-07 11:40:10 -08:00
parent 0ca57389f3
commit 368cec8641

View File

@@ -1,10 +1,2 @@
/** Output key + value as string for each item in the object. Adds new line after each item. */
export const OBJ_TO_STR = (obj: object): string => Object.entries(obj).reduce((str, [p, val]) => `${str}${p}: ${val}\n`, '');
/** Removes our dev logs from prod builds */
export const disableProductionConsoleLogs = () => {
if (import.meta.env.PROD && !import.meta.env.VITE_ALLOW_CONSOLE_LOGS) {
console.log = () => {};
console.debug = () => {};
console.info = () => {};
}
};