Skip to content

Commit

Permalink
Remove duplicated 'FunctionTypeDef' definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Sep 14, 2023
1 parent d4b9357 commit 5b08b99
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions decompiler/structures/pseudo/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,6 @@ def __str__(self) -> str:
return f"{self.return_type}({', '.join(str(x) for x in self.parameters)})"


@dataclass(frozen=True, order=True)
class FunctionTypeDef(Type):
return_type: Type
parameters: Tuple[Parameter, ...]

def __str__(self) -> str:
"""Return an anonymous string representation such as void*(int, int, char*)."""
return f"{self.return_type}({', '.join(str(x) for x in self.parameters)})"


class TypeParser:
"""A type parser in charge of creating types."""

Expand Down

0 comments on commit 5b08b99

Please sign in to comment.