Skip to content

Commit d95caa5

Browse files
committed
remove unused getparameter functions
1 parent 1dcc7a4 commit d95caa5

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

functions-python/tasks_executor/src/tasks/licenses/populate_license_rules.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,3 @@ def populate_license_rules(dry_run, db_session):
8484
logging.error("An error occurred while populating license rules: %s", e)
8585
db_session.rollback()
8686
raise
87-
88-
89-
def get_parameters(payload):
90-
"""
91-
Get parameters from the payload and environment variables.
92-
93-
Args:
94-
payload (dict): dictionary containing the payload data.
95-
Returns:
96-
tuple: (dry_run, after_date)
97-
"""
98-
dry_run = payload.get("dry_run", False)
99-
return dry_run

functions-python/tasks_executor/src/tasks/licenses/populate_license_tags.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,3 @@ def populate_license_tags(dry_run, db_session):
114114
logging.error("An error occurred while populating license tags: %s", e)
115115
db_session.rollback()
116116
raise
117-
118-
119-
def get_parameters(payload):
120-
"""
121-
Get parameters from the payload.
122-
123-
Args:
124-
payload (dict): dictionary containing the payload data.
125-
Returns:
126-
bool: dry_run
127-
"""
128-
return payload.get("dry_run", False)

0 commit comments

Comments
 (0)