Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

openapi: Remove unused get_event_type function.

Anders Kaseorg0eff862459ed
diff --git a/zerver/openapi/openapi.py b/zerver/openapi/openapi.py
index 53a88b92696..70d0943d0bc 100644
--- a/zerver/openapi/openapi.py
+++ b/zerver/openapi/openapi.py
@@ -347,10 +347,6 @@ def find_openapi_endpoint(path: str) -> Optional[str]:
return None
-def get_event_type(event: Dict[str, Any]) -> str:
- return event["type"] + ":" + event.get("op", "")
-
-
def fix_events(content: Dict[str, Any]) -> None:
"""Remove undocumented events from events array. This is a makeshift
function so that further documentation of `/events` can happen with