Skip to content

Commit

Permalink
Clean up remaining traces of initiate situation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlogand committed Jul 23, 2024
1 parent 08a072e commit 04de3d2
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 115 deletions.
4 changes: 1 addition & 3 deletions backend/rorapp/functions/forum_phase_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ def initiate_situation(faction_id: int) -> list[dict]:
"""
Initiate a random situation.
This function is called when a player initiates a situation during the forum phase.
Args:
action_id (int): The action ID.
Returns:
dict: The response with a message and a status code.
dict: The WebSocket messages to send.
"""
messages_to_send = []

Expand Down
2 changes: 0 additions & 2 deletions backend/rorapp/views/submit_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ def perform_action(
)
case "face_mortality":
response, messages = face_mortality(action.id)
case "initiate_situation":
response, messages = initiate_situation(action.id)
case "assign_concessions":
response, messages = assign_concessions(action.id, request.data)

Expand Down
2 changes: 0 additions & 2 deletions frontend/components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Collection from "@/classes/Collection"
import Action from "@/classes/Action"
import SelectFactionLeaderDialog from "@/components/actionDialogs/SelectFactionLeaderDialog"
import FaceMortalityDialog from "@/components/actionDialogs/FaceMortalityDialog"
import InitiateSituationDialog from "@/components/actionDialogs/InitiateSituationDialog"
import AssignConcessionsDialog from "@/components/actionDialogs/AssignConcessionsDialog"

interface ActionDialogProps {
Expand All @@ -17,7 +16,6 @@ interface ActionDialogProps {
const dialogs: { [key: string]: React.ComponentType<any> } = {
select_faction_leader: SelectFactionLeaderDialog,
face_mortality: FaceMortalityDialog,
initiate_situation: InitiateSituationDialog,
assign_concessions: AssignConcessionsDialog,
}

Expand Down
104 changes: 0 additions & 104 deletions frontend/components/actionDialogs/InitiateSituationDialog.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/data/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"sentence": "Face Mortality",
"title": "Face Mortality"
},
"initiate_situation": {
"sentence": "initiate a Situation",
"title": "Initiate Situation"
},
"assign_concessions": {
"sentence": "assign Concessions",
"title": "Assign Concessions"
Expand Down

0 comments on commit 04de3d2

Please sign in to comment.