File tree Expand file tree Collapse file tree 4 files changed +0
-40
lines changed Expand file tree Collapse file tree 4 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -229,15 +229,6 @@ impl Builder {
229
229
}
230
230
meta.Traits = append(meta.Traits, self.formatType(ast.Base))
231
231
}
232
- for (_, mut s) in ast.Statics {
233
- if isPub(s.Ident) {
234
- mut node := ast::Node{
235
- Token: s.Token,
236
- Data: s,
237
- }
238
- meta.Statics = append(meta.Statics, self.node(node))
239
- }
240
- }
241
232
for (_, mut m) in ast.Methods {
242
233
if isPub(m.Ident) {
243
234
mut node := ast::Node{
Original file line number Diff line number Diff line change @@ -1585,24 +1585,8 @@ fn isRanged(&e: &ast::Expr): bool {
1585
1585
ret false
1586
1586
}
1587
1587
1588
- fn isEmptyImpl(&imp: &ast::Impl): bool {
1589
- ret len(imp.Methods) == 0 && len(imp.Statics) == 0
1590
- }
1591
-
1592
1588
fn cloneBuf(b: []byte): []byte {
1593
1589
mut rb := make([]byte, len(b))
1594
1590
copy(rb, b)
1595
1591
ret rb
1596
- }
1597
-
1598
- fn isGroupStmt(stmt: ast::Stmt): bool {
1599
- match type stmt.Data {
1600
- | &ast::TypeAlias
1601
- | &ast::Var
1602
- | &ast::Assign
1603
- | &ast::Expr:
1604
- ret true
1605
- |:
1606
- ret false
1607
- }
1608
1592
}
Original file line number Diff line number Diff line change @@ -10,6 +10,5 @@ enum Meta: type {
10
10
// Metadata for struct.
11
11
struct MetaStruct {
12
12
Traits: []str
13
- Statics: []&Doc
14
13
Methods: []&Doc
15
14
}
Original file line number Diff line number Diff line change @@ -277,19 +277,6 @@ impl gen {
277
277
}
278
278
}
279
279
280
- fn statics(mut &self, doc: []&doc::Doc) {
281
- for _, node in doc {
282
- self.out.WriteStr("\n\n")!
283
- self.pushJmp(node, 1)
284
- self.out.WriteStr("#### ")!
285
- self.out.WriteStr(node.Name)!
286
- self.out.WriteStr("\n```jule\n")!
287
- self.out.WriteStr(node.Code)!
288
- self.out.WriteStr("\n```\n")!
289
- self.gendoc(node)
290
- }
291
- }
292
-
293
280
fn methods(mut &self, doc: []&doc::Doc) {
294
281
iter := fn(_static: bool) {
295
282
for _, node in doc {
@@ -328,7 +315,6 @@ impl gen {
328
315
}
329
316
meta := (&doc::MetaStruct)(doc.Meta)
330
317
self.implTraits(meta.Traits)
331
- self.statics(meta.Statics)
332
318
self.methods(meta.Methods)
333
319
}
334
320
You can’t perform that action at this time.
0 commit comments