diff --git a/org_rw/org_rw.py b/org_rw/org_rw.py index a466d4f..8cb3855 100644 --- a/org_rw/org_rw.py +++ b/org_rw/org_rw.py @@ -922,9 +922,6 @@ class Headline: if " " in arguments: language = arguments[: arguments.index(" ")] arguments = arguments[arguments.index(" ") + 1 :] - else: - language = arguments - arguments = None sections.append( { "line_first": start + 1, @@ -987,7 +984,6 @@ class Headline: content = section["content"] code_result = section.get("result", None) arguments = section.get("arguments", None) - language = section.get("language", None) name = section.get("name", None) results.append( CodeSnippet(