Skip to content

Commit e6a1111

Browse files
Remove dead code
Removed the file_to_base64 function
1 parent cf68051 commit e6a1111

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

python/travel-adk-ai-agent/google_workspace.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ def download_chat_attachment(attachment_name) -> str:
8080
print(f'Download {int(status.progress() * 100)}')
8181
return base64.b64encode(buffer.getvalue()).decode('utf-8')
8282

83-
def file_to_base64(file_path: str) -> str:
84-
"""Reads a file and returns its content as a base64 encoded string."""
85-
with open(file_path, "rb") as f:
86-
return base64.b64encode(f.read()).decode("utf-8")
87-
8883
def create_message(message) -> str:
8984
"""Creates a Chat message in the configured space."""
9085
print(f"Creating message in space {SPACE_NAME}...")

0 commit comments

Comments
 (0)