Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions src/Itinero/Profiles/Vehicle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,17 @@ public abstract string Name
/// <summary>
/// Gets the vehicle types.
/// </summary>
public virtual string[] VehicleTypes
{
get
{
return new string[] { };
}
}
public virtual string[] VehicleTypes { get; } = [];

/// <summary>
/// Gets a whitelist of attributes to keep as meta-data.
/// </summary>
public virtual HashSet<string> MetaWhiteList
{
get
{
return new HashSet<string>();
}
}
public virtual HashSet<string> MetaWhiteList { get; } = [];

/// <summary>
/// Gets a whitelist of attributes to keep as part of the profile.
/// </summary>
public virtual HashSet<string> ProfileWhiteList
{
get
{
return new HashSet<string>();
}
}
public virtual HashSet<string> ProfileWhiteList { get; } = [];

/// <summary>
/// Adds a number of keys to the given whitelist when they are relevant for this vehicle.
Expand Down Expand Up @@ -215,7 +197,7 @@ public long Serialize(Stream stream)

/// <summary>
/// Serializes the content of this vehicle.
/// </summary
/// </summary>
protected virtual long DoSerialize(Stream stream)
{
return 0;
Expand Down