Found some more bits and pieces of WinRT + Xbox 360 support code and removed them
git-svn-id: file:///srv/devel/repo-conversion/nusu@328 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
3f1809e5cc
commit
6053f5a877
4 changed files with 3 additions and 18 deletions
|
@ -295,12 +295,7 @@ namespace Nuclex.Support.Collections {
|
|||
}
|
||||
|
||||
index += this.firstBlockStartIndex;
|
||||
#if WINDOWS
|
||||
blockIndex = Math.DivRem(index, this.blockSize, out subIndex);
|
||||
#else
|
||||
blockIndex = index / this.blockSize;
|
||||
subIndex = index % this.blockSize;
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -309,11 +304,7 @@ namespace Nuclex.Support.Collections {
|
|||
/// <param name="value">Value that will be checked for compatibility</param>
|
||||
/// <returns>True if the value can be placed in the deque</returns>
|
||||
private static bool isCompatibleObject(object value) {
|
||||
#if WINRT
|
||||
return ((value is TItem) || ((value == null) && !typeof(TItem).GetTypeInfo().IsValueType));
|
||||
#else
|
||||
return ((value is TItem) || ((value == null) && !typeof(TItem).IsValueType));
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the provided object matches the deque's type</summary>
|
||||
|
|
|
@ -37,11 +37,7 @@ namespace Nuclex.Support.Collections {
|
|||
ISerializable,
|
||||
IDeserializationCallback,
|
||||
#endif
|
||||
#if WINRT
|
||||
ICollection,
|
||||
#else
|
||||
IDictionary,
|
||||
#endif
|
||||
IDictionary<KeyType, ValueType> {
|
||||
|
||||
#if !NO_SERIALIZATION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue