Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] newhdrgen: removed Include class #99584

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions libc/newhdrgen/class_implementation/classes/include.py

This file was deleted.

1 change: 0 additions & 1 deletion libc/newhdrgen/gpu_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def __init__(self, name):
self.enumerations = []
self.objects = []
self.functions = []
self.includes = []

def add_macro(self, macro):
self.macros.append(macro)
Expand Down
7 changes: 0 additions & 7 deletions libc/newhdrgen/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def __init__(self, name):
self.enumerations = []
self.objects = []
self.functions = []
self.includes = []

def add_macro(self, macro):
self.macros.append(macro)
Expand All @@ -34,15 +33,9 @@ def add_object(self, object):
def add_function(self, function):
self.functions.append(function)

def add_include(self, include):
self.includes.append(include)

def __str__(self):
content = [""]

for include in self.includes:
content.append(str(include))

for macro in self.macros:
content.append(f"{macro}\n")

Expand Down
4 changes: 0 additions & 4 deletions libc/newhdrgen/yaml_to_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from class_implementation.classes.macro import Macro
from class_implementation.classes.type import Type
from class_implementation.classes.function import Function
from class_implementation.classes.include import Include
from class_implementation.classes.enumeration import Enumeration
from class_implementation.classes.object import Object

Expand Down Expand Up @@ -103,9 +102,6 @@ def yaml_to_classes(yaml_data, header_class, entry_points=None):
Object(object_data["object_name"], object_data["object_type"])
)

for include_data in yaml_data.get("includes", []):
header.add_include(Include(include_data))

return header


Expand Down
Loading