Mojo: Mojom: Remove some dead code.

R=sky@chromium.org

Review URL: https://codereview.chromium.org/395203003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283600 0039d316-1c4b-4281-b951-d872f2087c98
parent 6b35c73f
...@@ -37,20 +37,6 @@ _MAX_ORDINAL_VALUE = 0xffffffff ...@@ -37,20 +37,6 @@ _MAX_ORDINAL_VALUE = 0xffffffff
_MAX_ARRAY_SIZE = 0xffffffff _MAX_ARRAY_SIZE = 0xffffffff
def _ListFromConcat(*items):
"""Generate list by concatenating inputs (note: only concatenates lists, not
tuples or other iterables)."""
itemsout = []
for item in items:
if item is None:
continue
if type(item) is not type([]):
itemsout.append(item)
else:
itemsout.extend(item)
return itemsout
# Disable lint check for exceptions deriving from Exception: # Disable lint check for exceptions deriving from Exception:
# pylint: disable=W0710 # pylint: disable=W0710
class ParseError(Error): class ParseError(Error):
......
...@@ -9,13 +9,6 @@ import ast ...@@ -9,13 +9,6 @@ import ast
import re import re
def _MapTreeForName(func, tree, name):
assert isinstance(name, str)
if not tree:
return []
return [func(subtree) for subtree in tree \
if isinstance(subtree, tuple) and subtree[0] == name]
def _MapTreeForType(func, tree, type_to_map): def _MapTreeForType(func, tree, type_to_map):
assert isinstance(type_to_map, type) assert isinstance(type_to_map, type)
if not tree: if not tree:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment