Skip to content

Commit

Permalink
Remove redundant console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Oct 25, 2023
1 parent 76ac209 commit 6703914
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions components/src/chips/keyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const Keyboard = ({
const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
event.preventDefault();
const key = keyPressToHackCharacter(event);
console.log("key down", key);
if (key === currentKey) {
return;
}
Expand All @@ -69,7 +68,6 @@ export const Keyboard = ({
};

const onKeyUp = (event: KeyboardEvent<HTMLInputElement>) => {
console.log("key up");
currentKey = 0;
keyboard.clearKey();
update?.();
Expand Down
3 changes: 1 addition & 2 deletions components/src/pin_display.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Err, Ok, isErr, isOk } from "@davidsouther/jiffies/lib/esm/result.js";
import { Ok, isOk } from "@davidsouther/jiffies/lib/esm/result.js";
import {
REGISTRY as BUILTIN_REGISTRY,
getBuiltinChip,
Expand All @@ -10,7 +10,6 @@ export class ChipDisplayInfo {
public constructor(chipName: string, unsigned?: string[]) {
if (BUILTIN_REGISTRY.has(chipName)) {
const chip = getBuiltinChip(chipName);
console.log(isErr(chip) ? Err(chip) : Ok(chip));
if (isOk(chip)) {
const pins = Array.from(Ok(chip).ins.entries()).concat(
Array.from(Ok(chip).outs.entries())
Expand Down
1 change: 0 additions & 1 deletion components/src/stores/chip.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ export function makeChipStore(
const [hdl, tst, cmp] = await Promise.all([
fs.readFile(fsName("hdl")).catch(() => makeHdl(name)),
fs.readFile(fsName("tst")).catch((e) => {
console.log(e);
return makeTst();
}),
fs.readFile(fsName("cmp")).catch(() => makeCmp()),
Expand Down

0 comments on commit 6703914

Please sign in to comment.