Skip to content

Commit

Permalink
Tidy up VS task list, rearrange deck chairs
Browse files Browse the repository at this point in the history
  • Loading branch information
vradarserver committed Aug 14, 2017
1 parent 523d32c commit d67cd5e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
1 change: 0 additions & 1 deletion ThirdParty/TypeLite.Net35/TsModels/TsClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class TsClass : TsModuleMember {
/// </remarks>
public TsType BaseType { get; internal set; }

// TODO document
public IList<TsType> Interfaces { get; internal set; }

/// <summary>
Expand Down
29 changes: 15 additions & 14 deletions VirtualRadar.WebSite/ApiControllers/FeedsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ public PolarPlotsJson GetPolarPlot(int feedId = -1)
return result;
}

private AircraftListJson BuildAircraftList(AircraftListJsonBuilderArgs builderArgs)
{
if(builderArgs.IsFlightSimulatorList) {
builderArgs.AircraftList = Factory.Singleton.Resolve<IFlightSimulatorAircraftList>();
builderArgs.SourceFeedId = -1;
}
builderArgs.IsInternetClient = PipelineRequest.IsInternet;

//TODO: Stop creating builders, share one between all instances of the controller
var builder = Factory.Singleton.Resolve<IAircraftListJsonBuilder>();
builder.Initialise(new WebSiteProvider());

return builder.Build(builderArgs);
}

/// <summary>
/// Returns a list of all aircraft on the feed.
/// </summary>
Expand Down Expand Up @@ -266,20 +281,6 @@ public AircraftListJson AircraftListV2([FromUri] int feed = -1, double? lat = nu
});
}

private AircraftListJson BuildAircraftList(AircraftListJsonBuilderArgs builderArgs)
{
if(builderArgs.IsFlightSimulatorList) {
builderArgs.AircraftList = Factory.Singleton.Resolve<IFlightSimulatorAircraftList>();
builderArgs.SourceFeedId = -1;
}
builderArgs.IsInternetClient = PipelineRequest.IsInternet;

var builder = Factory.Singleton.Resolve<IAircraftListJsonBuilder>();
builder.Initialise(new WebSiteProvider());

return builder.Build(builderArgs);
}

private AircraftListJsonBuilderFilter AircraftListJsonBuilderFilterFromQueryString()
{
AircraftListJsonBuilderFilter result = null;
Expand Down
2 changes: 0 additions & 2 deletions VirtualRadar.WinForms/Wizard/InfoPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public InfoPage()
{
// This call is required by the Windows Form Designer.
InitializeComponent();

// TODO: Add any initialization after the InitializeComponent call
}

/// <summary>
Expand Down

0 comments on commit d67cd5e

Please sign in to comment.