Skip to content

Commit 3a8392d

Browse files
committed
front: remove dead code
1 parent a4e296e commit 3a8392d

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ wasm:
1010
.PHONY: web-dev
1111
web-dev: wasm
1212
cd web && pnpm dev
13+
14+
.PHONY: web-lint
15+
web-lint:
16+
cd web && pnpm check

web/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
8+
"check": "astro check",
89
"build": "astro check && astro build",
910
"preview": "astro preview",
1011
"astro": "astro"

web/src/components/Solver.jsx

-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ import init, {
44
PredicateStyleJs,
55
diff_trace_solver_js,
66
display_joint_rules_js,
7-
compare_rulesets_js,
87
} from "../../typing_rust_patterns/typing_rust_patterns.js";
98
import SolverOptions from './SolverOptions.jsx';
109

1110
import { useEffect, useState, useMemo } from 'react';
1211
import { useNavigate, useSearchParams } from "react-router-dom";
1312
import Button from 'react-bootstrap/Button';
1413
import ButtonGroup from 'react-bootstrap/ButtonGroup';
15-
import Col from 'react-bootstrap/Col';
1614
import Container from 'react-bootstrap/Container';
17-
import Dropdown from 'react-bootstrap/Dropdown';
1815
import FloatingLabel from 'react-bootstrap/FloatingLabel';
1916
import Form from 'react-bootstrap/Form';
2017
import InputGroup from 'react-bootstrap/InputGroup';
@@ -56,10 +53,6 @@ function useStateInParams({searchParams, setSearchParams}, key, def, read = (x)
5653
return [val, setValAndParams]
5754
}
5855

59-
function InhRef() {
60-
return <span className="inherited-ref" title="inherited reference">&</span>
61-
}
62-
6356
export function Help({show, setShow, style}) {
6457
return <>
6558
<Offcanvas placement="end" scroll show={show} onHide={() => setShow(false)}>

web/src/components/SolverOptions.jsx

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
import init, { RuleSetJs } from "../../typing_rust_patterns/typing_rust_patterns.js";
2-
31
import { useRef, useState, useEffect } from 'react';
42
import Button from 'react-bootstrap/Button';
5-
import ButtonGroup from 'react-bootstrap/ButtonGroup';
6-
import Col from 'react-bootstrap/Col';
73
import Container from 'react-bootstrap/Container';
8-
import Dropdown from 'react-bootstrap/Dropdown';
94
import Form from 'react-bootstrap/Form';
10-
import InputGroup from 'react-bootstrap/InputGroup';
115
import Navbar from 'react-bootstrap/Navbar';
126
import Nav from 'react-bootstrap/Nav';
137
import Offcanvas from 'react-bootstrap/Offcanvas';
148
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
15-
import Row from 'react-bootstrap/Row';
169
import Stack from 'react-bootstrap/Stack';
17-
import Table from 'react-bootstrap/Table';
1810
import Tooltip from 'react-bootstrap/Tooltip';
1911

20-
await init({});
21-
2212
function InhRef() {
2313
return <span className="inherited-ref" title="inherited reference">&</span>
2414
}
@@ -161,7 +151,7 @@ export function OptionElem({ option, options, setOptions, fullWidth }) {
161151
variant={variant}
162152
className={"text-nowrap " + (fullWidth ? "w-100" : "")}
163153
disabled={disabled}
164-
onClick={(e) => { setKey(option.name, next_value.name); return false; }}
154+
onClick={(_e) => { setKey(option.name, next_value.name); return false; }}
165155
>
166156
{hiddenOptionsForWidth}
167157
<span style={style}>

0 commit comments

Comments
 (0)