Skip to content

Commit

Permalink
update README and remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
bdcht committed May 26, 2020
1 parent 25846af commit fe34186
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ Changelog
.. _ply: http://www.dabeaz.com/ply/
.. _sqlalchemy: http://www.sqlalchemy.org
.. _LICENSE: https://github.com/bdcht/amoco/blob/release/LICENSE
.. _v2.9.4: https://github.com/bdcht/amoco/releases/tag/v2.9.4
.. _v2.9.3: https://github.com/bdcht/amoco/releases/tag/v2.9.3
.. _v2.9.2: https://github.com/bdcht/amoco/releases/tag/v2.9.2
.. _v2.9.1: https://github.com/bdcht/amoco/releases/tag/v2.9.1
Expand Down
33 changes: 0 additions & 33 deletions amoco/ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,39 +187,6 @@ def _vltable(self, **kargs):
# -------------------------------------------------------------------------------


class mmapView(View):
"""Class that implements view of MemoryMap objects.
A mmapView additionnally implements the _vltable method which allows to
pretty print the memory through ui.render.highlight method.
The str() representation of a memoryView instance uses this pretty printer
through engines' pp method.
"""

_is_map = True

def __init__(self, m):
super().__init__(of=m)

def _vltable(self, **kargs):
t = vltable(**kargs)
t.rowparams["sep"] = icons.sep
for k,z in self.of._zones.items():
if k is None:
a = ""
else:
a = str(k)
for o in z._map:
lv = []
lv.append((Token.Address,"%s%+08x"%(a,o.vaddr)))
lv.append((Token.Column,""))
data = str(o.data)
lv.append((Token.Literal,data))
lv.append((Token.Column,""))
lv.append((Token.Address,".%+08x"%(o.end)))
t.addrow(lv)
t.addrow((Token.Memory,icons.hor*8))
return t

class mmapView(View):
"""Class that implements view of MemoryMap objects.
A mmapView additionnally implements the _vltable method which allows to
Expand Down

0 comments on commit fe34186

Please sign in to comment.