Skip to content

Commit 4233df3

Browse files
committed
Remove obsolete code
1 parent f42990b commit 4233df3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

SS14.MapServer/Controllers/MapController.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public class MapController : ControllerBase
2626
private readonly IJobSchedulingService _schedulingService;
2727

2828
private readonly ServerConfiguration _serverConfiguration = new();
29-
private readonly BuildConfiguration _buildConfiguration = new();
3029

3130
public MapController(
3231
Context context,
@@ -47,12 +46,6 @@ public MapController(
4746
[Produces("application/json")]
4847
public async Task<ActionResult<IEnumerable<Map>>> GetMaps()
4948
{
50-
if (!_buildConfiguration.Enabled)
51-
return NotFound("Automated building features are disabled");
52-
53-
if (_context.Map == null)
54-
return NotFound();
55-
5649
var maps = await _context.Map.Include(map => map.Grids).ToListAsync();
5750
maps = maps.Select(SetMapGridUrls).ToList();
5851
return maps;

0 commit comments

Comments
 (0)