diff --git a/d7-wren/main.wren b/d7-wren/main.wren index 36c7221..71fc2ad 100644 --- a/d7-wren/main.wren +++ b/d7-wren/main.wren @@ -13,7 +13,6 @@ class Entry { size { _size } files { _files } parent { _parent } - type { _files == null ? "file" : "dir" } total_size { if(_size) { @@ -23,14 +22,6 @@ class Entry { } } - toString { - if(_files) { - return "{" + _files.map {|entry| entry.key + ": " + entry.value.toString}.join(", ") + "}" - } else { - return _size.toString - } - } - iter_dirs(fn) { if(_files) { fn.call(this) @@ -80,4 +71,4 @@ root.iter_dirs {|dir| } System.print(sum_p1) -System.print(smallest_p2) \ No newline at end of file +System.print(smallest_p2)