Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit e13d18d

Browse files
committed
Remove unused parameters.
1 parent 000fdb8 commit e13d18d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

contrib/graph/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def make_name(pdu_id: str, origin: str) -> str:
2626
return "%s@%s" % (pdu_id, origin)
2727

2828

29-
def make_graph(pdus: List[dict], room: str, filename_prefix: str) -> None:
29+
def make_graph(pdus: List[dict], filename_prefix: str) -> None:
3030
"""
3131
Generate a dot and SVG file for a graph of events in the room based on the
3232
topological ordering by querying a homeserver.
@@ -146,4 +146,4 @@ def get_pdus(host: str, room: str) -> List[dict]:
146146

147147
pdus = get_pdus(host, room)
148148

149-
make_graph(pdus, room, prefix)
149+
make_graph(pdus, prefix)

contrib/graph/graph3.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from synapse.util.frozenutils import unfreeze
2525

2626

27-
def make_graph(file_name: str, room_id: str, file_prefix: str, limit: int) -> None:
27+
def make_graph(file_name: str, file_prefix: str, limit: int) -> None:
2828
"""
2929
Generate a dot and SVG file for a graph of events in the room based on the
3030
topological ordering by reading line-delimited JSON from a file.
@@ -149,8 +149,7 @@ def make_graph(file_name: str, room_id: str, file_prefix: str, limit: int) -> No
149149
)
150150
parser.add_argument("-l", "--limit", help="Only retrieve the last N events.")
151151
parser.add_argument("event_file")
152-
parser.add_argument("room")
153152

154153
args = parser.parse_args()
155154

156-
make_graph(args.event_file, args.room, args.prefix, args.limit)
155+
make_graph(args.event_file, args.prefix, args.limit)

0 commit comments

Comments
 (0)