diff options
| author | bptato <nincsnevem662@gmail.com> | 2022-01-24 23:01:36 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2022-01-24 23:01:36 +0100 |
| commit | acf7cfad349f45bc97d84e9d0690aa36b1332919 (patch) | |
| tree | a15c55f193ed34a28ea8cf9f12dbf2e723983bdc /src | |
| parent | fc73013902e05eb7c2a9750bf804f2e356bd30f1 (diff) | |
| download | chawan-acf7cfad349f45bc97d84e9d0690aa36b1332919.tar.gz | |
Remove some unused declarations
Diffstat (limited to 'src')
| -rw-r--r-- | src/css/selparser.nim | 1 | ||||
| -rw-r--r-- | src/css/sheet.nim | 1 | ||||
| -rw-r--r-- | src/css/values.nim | 2 | ||||
| -rw-r--r-- | src/layout/engine.nim | 2 |
4 files changed, 0 insertions, 6 deletions
diff --git a/src/css/selparser.nim b/src/css/selparser.nim index b5339986..488005a4 100644 --- a/src/css/selparser.nim +++ b/src/css/selparser.nim @@ -62,7 +62,6 @@ type proc add(sellist: SelectorList, sel: Selector) = sellist.sels.add(sel) proc add(sellist: SelectorList, sels: SelectorList) = sellist.sels.add(sels.sels) -proc setLen(sellist: SelectorList, i: int) = sellist.sels.setLen(i) proc `[]`*(sellist: SelectorList, i: int): Selector = sellist.sels[i] proc len*(sellist: SelectorList): int = sellist.sels.len diff --git a/src/css/sheet.nim b/src/css/sheet.nim index 1df4fb70..07f9fe8f 100644 --- a/src/css/sheet.nim +++ b/src/css/sheet.nim @@ -72,7 +72,6 @@ iterator gen_rules*(sheet: CSSStylesheet, tag: TagType, id: string, classes: seq yield rule proc add(sheet: var CSSStylesheet, rule: CSSRuleDef) = - let rule = CSSRuleDef(rule) var hashes: SelectorHashes for list in rule.sels: for sel in list.sels: diff --git a/src/css/values.nim b/src/css/values.nim index 87ac9e2d..fb1d6d63 100644 --- a/src/css/values.nim +++ b/src/css/values.nim @@ -760,7 +760,6 @@ func equals*(a, b: CSSSpecifiedValue): bool = return false proc applyValue(vals, parent: CSSSpecifiedValues, t: CSSPropertyType, val: CSSSpecifiedValue, global: CSSGlobalValueType) = - let oval = vals[t] case global of VALUE_INHERIT, VALUE_UNSET: if inherited(t): @@ -777,7 +776,6 @@ proc applyValue(vals, parent: CSSSpecifiedValues, t: CSSPropertyType, val: CSSSp proc applyValue*(vals, parent: CSSSpecifiedValues, d: CSSDeclaration) = let vv = getSpecifiedValue(d, parent) let val = vv.a - let oval = vals[val.t] case val.t of PROPERTY_ALL: let global = cssGlobal(d) diff --git a/src/layout/engine.nim b/src/layout/engine.nim index 64ae4494..9b1e9363 100644 --- a/src/layout/engine.nim +++ b/src/layout/engine.nim @@ -90,7 +90,6 @@ proc addAtom(ictx: InlineContext, atom: InlineAtom, maxwidth: int, specified: CS proc addWord(state: var InlineState) = if state.word.str != "": - let row = state.ictx.thisrow var word = state.word word.height = state.ictx.cellheight state.ictx.addAtom(word, state.maxwidth, state.specified) @@ -271,7 +270,6 @@ proc alignInlineBlock(bctx: BlockContext, box: InlineBlockBox, parentcss: CSSSpe box.ictx.whitespace = false proc alignInline(bctx: BlockContext, box: InlineBox) = - let box = InlineBox(box) assert box.ictx != nil if box.newline: box.ictx.flushLine() |