Remove old inp in routine
This commit is contained in:
@@ -27,20 +27,7 @@ def set_title(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return execute_command(name, set_title_cmd(name ,cs))
|
||||
|
||||
|
||||
class InpTitle:
|
||||
def __init__(self, section) -> None:
|
||||
self.value = '\n'.join(section)
|
||||
|
||||
|
||||
def inp_in_title(section: list[str]) -> ChangeSet:
|
||||
if section == []:
|
||||
return ChangeSet()
|
||||
|
||||
obj = InpTitle(section)
|
||||
return ChangeSet(g_update_prefix | {'type': 'title', 'value' : obj.value})
|
||||
|
||||
|
||||
def inp_in_title_new(section: list[str]) -> str:
|
||||
def inp_in_title(section: list[str]) -> str:
|
||||
if section == []:
|
||||
return ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user