X-Git-Url: http://nitlanguage.org diff --git a/lib/buffered_ropes.nit b/lib/buffered_ropes.nit index 6849d48..bbed4ea 100644 --- a/lib/buffered_ropes.nit +++ b/lib/buffered_ropes.nit @@ -89,8 +89,8 @@ end private class Leaf super RopeString - private var buf: ManualBuffer - private var bns: NativeString is noinit + var buf: ManualBuffer + var bns: NativeString is noinit redef var length: Int is noinit redef fun empty do return new Leaf(new ManualBuffer) @@ -243,7 +243,6 @@ redef class Concat redef fun +(o) do var s = o.to_s - var mlen = length var slen = s.length if s isa FlatString then var r = right @@ -289,7 +288,6 @@ redef class FlatString return new Concat(sl + self, s.right) else if s isa Leaf then if slen + mlen > maxlen then return new Concat(self, s) - var mits = items var mifrom = index_from var sb = s.buf var b = new ManualBuffer