Delete commented-out code blocks

Git keeps the history. SimpleCommodityData records its retired
MessagePack keys so they are not reused against old data.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-11 22:14:58 +02:00
commit 3dcfaf9783
15 changed files with 1 additions and 381 deletions

View file

@ -28,24 +28,6 @@ public class InventoryMenu : MonoBehaviour
private InventoryPanel _selectedPanel;
private ItemInstance _selectedItem;
private ItemData _selectedItemData;
// private List<IDisposable> _backgroundSubscriptions;
// private ItemInstance _dragItem;
// private Transform[] _dragCells;
// private Vector2[] _dragOffsets;
// private int2 _dragCellOffset;
// private ItemRotation _originalRotation;
// //private Shape _previousFakeOccupancy;
// private Shape _originalOccupancy;
// private EquippedItem _originalEquippedItem;
// private InventoryPanel _originalPanel;
//
// private InventoryPanel _dragTargetPanel;
// private int2 _dragTargetPosition;
// private int2 _lastDragPosition;
// private bool _dragTargetValid;
// private bool _destroyItem;
private void OnEnable()
{
// Background.gameObject.SetActive(true);

View file

@ -105,41 +105,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
Properties.AddProperty("Ships", () => shipCount);
}
});
// PathAnimationButton.onClick.AddListener(() =>
// {
// Map.StartCoroutine(AnimatePath());
// });
}
// private IEnumerator AnimatePath()
// {
// var pathZones = ActionGameManager.CurrentSector.ExitPath;
// LegendPanel.SetActive(false);
// PathAnimationButton.gameObject.SetActive(false);
//
// var revealCount = ActionGameManager.CurrentSector.Entrance.Distance[ActionGameManager.CurrentSector.Exit];
// Map.StartReveal(
// PathAnimationDuration / revealCount * (LinkAnimationDuration / (IconAnimationDuration + LinkAnimationDuration)),
// PathAnimationDuration / revealCount * (IconAnimationDuration / (IconAnimationDuration + LinkAnimationDuration)));
// MainCamera.enabled = false;
// SectorCamera.targetTexture = null;
// Canvas.gameObject.SetActive(false);
// SectorCamera.gameObject.SetActive(true);
//
// var pathAnimationLerp = 0f;
// while (pathAnimationLerp < 1)
// {
// var currentTargetZone = pathZones[(int) (pathZones.Length * pathAnimationLerp)];
// _position = lerp(_position, currentTargetZone.Position, PathAnimationDamping);
// pathAnimationLerp += Time.deltaTime / (PathAnimationDuration * PathAnimationDurationPadding);
// UpdateCamera();
// yield return null;
// }
//
// LegendPanel.SetActive(true);
// PathAnimationButton.gameObject.SetActive(true);
// }
private void OnEnable()
{

View file

@ -157,27 +157,6 @@ public class Spreadsheet : MonoBehaviour
row.ApplyColumnSizes(_columnSizes);
}
void Start()
{
// ShowData(
// new []{"Column 1", "Column 2", "Column 3", "Column 4", "Column 5"},
// new []{2,1,1,1,1},
// Enumerable.Range(0,10)
// .Select(i=>new SpreadsheetEntryRow
// {
// Columns = Enumerable.Range(0,5).Select(j=>
// {
// var value = Random.Range(0, 10000);
// return new SpreadsheetEntryColumn
// {
// Output = () => $"c{(j+1).ToString()}:{value.ToString()}",
// SortKey = value
// };
// }).ToArray()
// }).ToArray()
// );
}
void Update()
{

View file

@ -58,32 +58,4 @@ public class PropertiesList : PropertiesPanel
}
OnExpand?.Invoke(_expanded);
}
// public override PropertyLabel AddProperty(string name, Func<string> read = null, Action<PointerEventData> onClick = null, bool radio = false)
// {
// var prop = base.AddProperty(name, read, onClick, radio);
// prop.gameObject.SetActive(false);
// return prop;
// }
//
// public override PropertiesList AddList(string name)
// {
// var list = base.AddList(name);
// list.gameObject.SetActive(false);
// return list;
// }
//
// public override RectTransform AddSection(string name)
// {
// var section = base.AddSection(name);
// section.gameObject.SetActive(false);
// return section;
// }
//
// public override PropertyButton AddButton(string name, Action<PointerEventData> onClick)
// {
// var button = base.AddButton(name, onClick);
// button.gameObject.SetActive(false);
// return button;
// }
}

View file

@ -357,29 +357,6 @@ public class PropertiesPanel : MonoBehaviour
OnPropertyAdded?.Invoke(field.gameObject);
}
// public void Inspect(Entity entity)
// {
// Clear();
// Title.text = entity.Name;
// var hullData = Context.GetData(entity.Hull) as HullData;
// AddSection(
// hullData.HullType == HullType.Ship ? "Ship" :
// hullData.HullType == HullType.Station ? "Station" :
// "Platform");
// //AddList(hullData.Name).Inspect(hull, entity);
// //PropertiesPanel.AddProperty("Hull", () => $"{hullData.Name}");
// AddEntityProperties(entity);
// //cargoList.SetExpanded(false,true);
//
// RefreshValues();
// }
// private void AddEntityProperties(Entity entity)
// {
// AddField("Name", () => entity.Name, name => entity.Name = name);
// AddProperty("Mass", () => $"{entity.Mass.SignificantDigits(Context.GameplaySettings.SignificantDigits)}");
// }
private void AddItemProperties(ItemInstance item)
{
var data = item.Data.Value;