Browse Source

Removed the code contracts /shit/.

pull/4/head
grokys 12 years ago
parent
commit
bba9893842
  1. 15
      Perspex/Contract.cs
  2. 1
      Perspex/ControlTemplate.cs
  3. 1
      Perspex/Controls/Control.cs
  4. 1
      Perspex/Interactive.cs
  5. 1
      Perspex/Perspex.csproj
  6. 1
      Perspex/PerspexObject.cs
  7. 1
      Perspex/PerspexProperty.cs
  8. 1
      Perspex/PriorityValue.cs
  9. 1
      Perspex/RoutedEvent.cs
  10. 1
      Perspex/Setter.cs
  11. 1
      Perspex/Styling/Activator.cs
  12. 1
      Perspex/Styling/Selectors.cs
  13. 1
      Perspex/Thickness.cs
  14. 1
      Perspex/Visual.cs
  15. 1
      Perspex/VisualExtensions.cs

15
Perspex/Contract.cs

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perspex
{
internal static class Contract
{
public static void Requires<TException>(bool condition) where TException : Exception
{
}
}
}

1
Perspex/ControlTemplate.cs

@ -7,7 +7,6 @@
namespace Perspex
{
using System;
using System.Diagnostics.Contracts;
using System.Linq;
using Perspex.Controls;

1
Perspex/Controls/Control.cs

@ -9,7 +9,6 @@ namespace Perspex.Controls
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.Contracts;
using System.Reactive.Linq;
using Perspex.Input;
using Perspex.Layout;

1
Perspex/Interactive.cs

@ -8,7 +8,6 @@ namespace Perspex
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Reactive;
using System.Reactive.Linq;

1
Perspex/Perspex.csproj

@ -70,6 +70,7 @@
<ItemGroup>
<Compile Include="Application.cs" />
<Compile Include="Classes.cs" />
<Compile Include="Contract.cs" />
<Compile Include="Controls\Border.cs" />
<Compile Include="Controls\Button.cs" />
<Compile Include="Controls\ContentPresenter.cs" />

1
Perspex/PerspexObject.cs

@ -8,7 +8,6 @@ namespace Perspex
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Linq.Expressions;
using System.Reactive;

1
Perspex/PerspexProperty.cs

@ -8,7 +8,6 @@ namespace Perspex
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Reflection;
using System.Text;

1
Perspex/PriorityValue.cs

@ -8,7 +8,6 @@ namespace Perspex
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Reactive.Disposables;

1
Perspex/RoutedEvent.cs

@ -7,7 +7,6 @@
namespace Perspex
{
using System;
using System.Diagnostics.Contracts;
using System.Reflection;
public enum RoutingStrategy

1
Perspex/Setter.cs

@ -8,7 +8,6 @@ namespace Perspex
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Reactive.Disposables;
using Perspex.Controls;

1
Perspex/Styling/Activator.cs

@ -8,7 +8,6 @@ namespace Perspex.Styling
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Reactive.Disposables;

1
Perspex/Styling/Selectors.cs

@ -7,7 +7,6 @@
namespace Perspex.Styling
{
using System;
using System.Diagnostics.Contracts;
using System.Reactive.Linq;
using Perspex.Controls;

1
Perspex/Thickness.cs

@ -7,7 +7,6 @@
namespace Perspex
{
using System;
using System.Diagnostics.Contracts;
public struct Thickness
{

1
Perspex/Visual.cs

@ -8,7 +8,6 @@ namespace Perspex
{
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using Perspex.Controls;
using Perspex.Media;

1
Perspex/VisualExtensions.cs

@ -7,7 +7,6 @@
namespace Perspex
{
using System;
using System.Diagnostics.Contracts;
using System.Linq;
public static class VisualExtensions

Loading…
Cancel
Save