Skip to content

Commit

Permalink
Removed unnecessary self-registration code (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-f0 authored Apr 24, 2024
1 parent 2a79f99 commit 54c3644
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions commands/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import argparse
import binascii
import inspect
import os
import shlex
from typing import Any, Dict, Type
Expand All @@ -24,20 +23,6 @@ class PatternContainer(BaseContainer):

container_verb: str = "pattern"

@classmethod
def lldb_self_register(cls, debugger: SBDebugger, module_name: str) -> None:
container_command = (
f'command container add -h "{cls.get_long_help()}" -H '
+ f'"{cls.get_short_help()}" {cls.container_verb}'
)
debugger.HandleCommand(container_command)

for _, member_cls in inspect.getmembers(cls):
if inspect.isclass(member_cls) and callable(
getattr(member_cls, "lldb_self_register", None)
):
member_cls.lldb_self_register(debugger, cls, module_name)

@staticmethod
def get_short_help() -> str:
return "pattern (create|search)"
Expand Down

0 comments on commit 54c3644

Please sign in to comment.