Skip to content

Commit

Permalink
Removed collection binding (until better times)
Browse files Browse the repository at this point in the history
  • Loading branch information
bustedbunny committed Apr 30, 2023
1 parent a67d240 commit 3123243
Show file tree
Hide file tree
Showing 27 changed files with 3 additions and 596 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
using MVVMToolkit.Binding.CollectionBinding.Generics;
using MVVMToolkit.Binding.Custom;
using MVVMToolkit.Binding.Custom;
using MVVMToolkit.Binding.Generics;
using MVVMToolkit.Editor.TypeSerialization;
using UnityEditor;

namespace MVVMToolkit.Editor.Binding
{
internal static class CollectionTypeCache
internal static class TypeCache
{
[InitializeOnLoadMethod]
private static void Init()
{
// Custom
TypeCaching.CacheTypes(typeof(ICustomBinder));

// Collections
TypeCaching.CacheTypes(typeof(IItemCollectionBinder));
TypeCaching.CacheTypes(typeof(ICollectionBinder));

// Solvers
TypeCaching.CacheTypes(typeof(ISingleSolver));
TypeCaching.CacheTypes(typeof(IMultiSolver));
Expand Down
File renamed without changes.
7 changes: 1 addition & 6 deletions Runtime/Binding/BindingParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using MVVMToolkit.Binding.CollectionBinding;
using MVVMToolkit.Binding.Custom;
using MVVMToolkit.Binding.Localization;
using MVVMToolkit.Binding.Tooltips;
Expand Down Expand Up @@ -40,7 +39,6 @@ public BindingParser(INotifyPropertyChanged bindingContext, VisualElement root,
ViewDataKeyStores.Add(new ReflectionParser(Binding));
ViewDataKeyStores.Add(new LocalizationAssetParser(assetTables));

ViewDataKeyStores.Add(new CollectionParser(Binding));
ViewDataKeyStores.Add(new CustomBindingParser(Binding));

ParseBindings();
Expand All @@ -62,10 +60,7 @@ private static void ParseAll(VisualElement root, Action<VisualElement> funcCall)
funcCall(root);
foreach (var element in root.Children())
{
if (element is not DataTemplate)
{
ParseAll(element, funcCall);
}
ParseAll(element, funcCall);
}
}

Expand Down
3 changes: 0 additions & 3 deletions Runtime/Binding/CollectionBinding.meta

This file was deleted.

133 changes: 0 additions & 133 deletions Runtime/Binding/CollectionBinding/BindableCollection.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Runtime/Binding/CollectionBinding/BindableCollection.cs.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Runtime/Binding/CollectionBinding/Binders.meta

This file was deleted.

95 changes: 0 additions & 95 deletions Runtime/Binding/CollectionBinding/Binders/ListViewBinder.cs

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions Runtime/Binding/CollectionBinding/CollectionParser.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Runtime/Binding/CollectionBinding/CollectionParser.cs.meta

This file was deleted.

Loading

0 comments on commit 3123243

Please sign in to comment.