mirror of
https://github.com/Relintai/MemR.git
synced 2025-01-25 15:29:20 +01:00
Removed superflous method.
This commit is contained in:
parent
a7579e1598
commit
876e5f9e2f
@ -22,12 +22,6 @@ class CodeEntry:
|
|||||||
result += str(element) + ", "
|
result += str(element) + ", "
|
||||||
return result.substr(0, result.length() - 2)
|
return result.substr(0, result.length() - 2)
|
||||||
|
|
||||||
func duplicate():
|
|
||||||
var sq : PoolByteArray = PoolByteArray()
|
|
||||||
sq.append_array(sequence)
|
|
||||||
var ce : CodeEntry = CodeEntry.new(sq)
|
|
||||||
return ce
|
|
||||||
|
|
||||||
|
|
||||||
class CodeTable:
|
class CodeTable:
|
||||||
var entries: Dictionary = {}
|
var entries: Dictionary = {}
|
||||||
@ -201,7 +195,6 @@ func decompress_lzw(code_stream_data: PoolByteArray, min_code_size: int, colors:
|
|||||||
var prev_code_entry: CodeEntry = code_table.get(prevcode)
|
var prev_code_entry: CodeEntry = code_table.get(prevcode)
|
||||||
|
|
||||||
if prev_code_entry:
|
if prev_code_entry:
|
||||||
prev_code_entry = prev_code_entry.duplicate()
|
|
||||||
code_table.add(prev_code_entry.add(k))
|
code_table.add(prev_code_entry.add(k))
|
||||||
else:
|
else:
|
||||||
code_table.add(k)
|
code_table.add(k)
|
||||||
|
Loading…
Reference in New Issue
Block a user