remove mono conditionals that no longer seem to be necessary
This commit is contained in:
parent
ad5c172687
commit
b035a256b6
2 changed files with 0 additions and 17 deletions
|
|
@ -24,11 +24,7 @@ namespace Server.Accounting
|
|||
|
||||
public static ICollection<IAccount> GetAccounts()
|
||||
{
|
||||
#if !MONO
|
||||
return m_Accounts.Values;
|
||||
#else
|
||||
return new List<IAccount>( m_Accounts.Values );
|
||||
#endif
|
||||
}
|
||||
|
||||
public static IAccount GetAccount( string username )
|
||||
|
|
|
|||
|
|
@ -495,15 +495,6 @@ namespace Server
|
|||
|
||||
public delegate void Callback();
|
||||
|
||||
#if MONO
|
||||
private static bool GenericComparator( Type type, object obj )
|
||||
{
|
||||
return ( type.IsGenericType )
|
||||
&& ( type.GetGenericTypeDefinition() == typeof( IComparable<> ) )
|
||||
&& ( type.GetGenericArguments()[0].IsAssignableFrom(obj as Type) );
|
||||
}
|
||||
#endif
|
||||
|
||||
public bool CompareTo( int sign, Callback argGenerator )
|
||||
{
|
||||
Type active = this.Active;
|
||||
|
|
@ -535,16 +526,12 @@ namespace Server
|
|||
* Bleh.
|
||||
*/
|
||||
|
||||
#if MONO
|
||||
Type[] ifaces = active.FindInterfaces( GenericComparator, active );
|
||||
#else
|
||||
Type[] ifaces = active.FindInterfaces( delegate( Type type, object obj )
|
||||
{
|
||||
return ( type.IsGenericType )
|
||||
&& ( type.GetGenericTypeDefinition() == typeof( IComparable<> ) )
|
||||
&& ( type.GetGenericArguments()[0].IsAssignableFrom( active ) );
|
||||
}, null );
|
||||
#endif
|
||||
|
||||
if ( ifaces.Length > 0 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue