mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove useless wrappers from db.py.
This commit is contained in:
10
game/db.py
10
game/db.py
@@ -21,7 +21,7 @@ from dcs.ships import (
|
||||
Stennis,
|
||||
ship_map,
|
||||
)
|
||||
from dcs.unittype import ShipType, UnitType, VehicleType
|
||||
from dcs.unittype import ShipType, UnitType
|
||||
from dcs.vehicles import (
|
||||
vehicle_map,
|
||||
)
|
||||
@@ -161,14 +161,6 @@ def unit_type_from_name(name: str) -> Optional[Type[UnitType]]:
|
||||
return None
|
||||
|
||||
|
||||
def vehicle_type_from_name(name: str) -> Type[VehicleType]:
|
||||
return vehicle_map[name]
|
||||
|
||||
|
||||
def ship_type_from_name(name: str) -> Type[ShipType]:
|
||||
return ship_map[name]
|
||||
|
||||
|
||||
def country_id_from_name(name: str) -> int:
|
||||
for k, v in country_dict.items():
|
||||
if v.name == name:
|
||||
|
||||
Reference in New Issue
Block a user