Skip to content

Commit

Permalink
appstream: is_console is unused and covered by component_type
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt authored and barthalion committed Jan 9, 2024
1 parent cc0d67a commit 80f9cc5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions flatpak_builder_lint/appstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ def component_type(path: str) -> str:
return str(components(path)[0].attrib.get("type"))


def is_console(path: str) -> bool:
if component_type(path) == "console-application":
return True
return False


def name(path: str) -> Optional[str]:
for name in parse_xml(path).findall("component/name"):
if not name.attrib.get(r"{http://www.w3.org/XML/1998/namespace}lang"):
Expand Down

0 comments on commit 80f9cc5

Please sign in to comment.