dev: removed unused files

This commit is contained in:
David Morgan
2021-05-27 12:35:11 -04:00
parent 6da38a7f93
commit 6db3fbf37c
6 changed files with 14 additions and 1660 deletions
@@ -3,6 +3,7 @@ using System.Linq;
using System.Reflection;
using System.Threading;
using Speckle.Core.Api;
using Speckle.Core.Credentials;
namespace Speckle.ConnectorUnity {
public readonly struct SpeckleSimpleInfo {
@@ -50,5 +51,18 @@ namespace Speckle.ConnectorUnity {
where i != null
select new SpeckleSimpleInfo( i.id ) ).ToList( );
}
public static IEnumerable<string> GetNames( this IEnumerable<Account> accounts )
{
List<string> names = new List<string>( );
if ( accounts != null ) {
names.AddRange(
from account in accounts
where account != null
select account.userInfo.name
);
}
return names;
}
}
}
@@ -1,35 +0,0 @@
using System.Collections.Generic;
using System.Linq;
using Speckle.Core.Credentials;
using Speckle.Core.Models;
namespace Speckle.ConnectorUnity {
public class BabyBase : Base {
[DetachProperty]
[Chunkable( 20000 )]
public List<uint> values { get; set; } = new List<uint>( );
[DetachProperty]
[Chunkable( 20000 )]
public List<double> vector { get; set; } = new List<double>( );
}
public static class BabyHelper {
public static IEnumerable<string> GetNames( this IEnumerable<Account> accounts )
{
List<string> names = new List<string>( );
if ( accounts != null ) {
names.AddRange(
from account in accounts
where account != null
select account.userInfo.name
);
}
return names;
}
}
}
File diff suppressed because it is too large Load Diff
@@ -1,14 +0,0 @@
using Speckle_Connector.dmo;
public static class StreamPropertyDrawersHelper {
#if UNITY_EDITOR
// public static string[ ] AllStreamNames( )
// {
// return BabyStreamManager.PossibleStream != null ? BabyStreamManager.PossibleStream.ToArray( ) : new[ ] {"Nothing"};
// }
#endif
}
@@ -1,25 +0,0 @@
using System;
using UnityEngine;
public class StringInList : PropertyAttribute {
public delegate string[ ] GetStringList( );
public StringInList( params string[ ] list )
{
List = list;
}
public StringInList( Type type, string methodName )
{
var method = type.GetMethod( methodName );
if ( method != null ) {
List = method.Invoke( null, null ) as string[ ];
} else {
Debug.LogError( "NO SUCH METHOD " + methodName + " FOR " + type );
}
}
public string[ ] List { get; private set; }
}
@@ -1,26 +0,0 @@
using System;
using UnityEditor;
using UnityEngine;
// copy pasta from https://gist.github.com/ProGM/9cb9ae1f7c8c2a4bd3873e4df14a6687
[CustomPropertyDrawer( typeof( StringInList ) )]
public class StringInListDrawer : PropertyDrawer {
// Draw the property inside the given rect
public override void OnGUI( Rect position, SerializedProperty property, GUIContent label )
{
var stringInList = attribute as StringInList;
var list = stringInList.List;
if ( property.propertyType == SerializedPropertyType.String ) {
int index = Mathf.Max( 0, Array.IndexOf( list, property.stringValue ) );
index = EditorGUI.Popup( position, property.displayName, index, list );
property.stringValue = list[ index ];
} else if ( property.propertyType == SerializedPropertyType.Integer ) {
property.intValue = EditorGUI.Popup( position, property.displayName, property.intValue, list );
} else {
base.OnGUI( position, property, label );
}
}
}