mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remove unnecessary ParseAddHelper methods
This commit is contained in:
@@ -160,26 +160,6 @@ namespace SabreTools.DatFiles
|
||||
/// <param name="throwOnError">True if the error that is thrown should be thrown back to the caller, false otherwise</param>
|
||||
public abstract void ParseFile(string filename, int indexId, bool keep, bool statsOnly = false, bool throwOnError = false);
|
||||
|
||||
/// <summary>
|
||||
/// Add a DatItem to the dictionary after checking
|
||||
/// </summary>
|
||||
/// <param name="item">Item data to check against</param>
|
||||
/// <param name="statsOnly">True to only add item statistics while parsing, false otherwise</param>
|
||||
/// <returns>The key for the item</returns>
|
||||
protected string ParseAddHelper(DatItem item, bool statsOnly)
|
||||
=> Items.AddItem(item, statsOnly);
|
||||
|
||||
/// <summary>
|
||||
/// Add a DatItem to the dictionary after checking
|
||||
/// </summary>
|
||||
/// <param name="item">Item data to check against</param>
|
||||
/// <param name="machineIndex">Index of the machine to map the DatItem to</param>
|
||||
/// <param name="sourceIndex">Index of the source to map the DatItem to</param>
|
||||
/// <param name="statsOnly">True to only add item statistics while parsing, false otherwise</param>
|
||||
/// <returns>The key for the item</returns>
|
||||
protected long ParseAddHelperDB(DatItem item, long machineIndex, long sourceIndex, bool statsOnly)
|
||||
=> ItemsDB.AddItem(item, machineIndex, sourceIndex, statsOnly);
|
||||
|
||||
#endregion
|
||||
|
||||
#region Writing
|
||||
|
||||
Reference in New Issue
Block a user