Fixing some compilation warnings.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-10-18 14:53:00 -07:00
parent 62b40730d9
commit c9b2e70563
3 changed files with 9 additions and 3 deletions

View File

@@ -52,7 +52,6 @@ namespace Orchard.Tests.Commands {
public class PublicMethodsOnly { public class PublicMethodsOnly {
public bool Bar { get; set; } // no accessors public bool Bar { get; set; } // no accessors
public bool Field = true; // no field public bool Field = true; // no field
public event Action<int> Event; // no event adder, remover, etc.
// no private method // no private method
private void Blah() { private void Blah() {
@@ -66,10 +65,19 @@ namespace Orchard.Tests.Commands {
public static bool operator ==(PublicMethodsOnly a, PublicMethodsOnly b) { public static bool operator ==(PublicMethodsOnly a, PublicMethodsOnly b) {
return false; return false;
} }
public static bool operator !=(PublicMethodsOnly a, PublicMethodsOnly b) { public static bool operator !=(PublicMethodsOnly a, PublicMethodsOnly b) {
return false; return false;
} }
public override int GetHashCode() {
throw new NotImplementedException();
}
public override bool Equals(Object obj) {
throw new NotImplementedException();
}
public void Method() { public void Method() {
} }
} }

View File

@@ -21,7 +21,6 @@ namespace Orchard.Mvc.ViewEngines.Razor {
private object _display; private object _display;
private object _layout; private object _layout;
private WorkContext _workContext; private WorkContext _workContext;
private object _new;
public Localizer T { get { return _localizer; } } public Localizer T { get { return _localizer; } }
public dynamic Display { get { return _display; } } public dynamic Display { get { return _display; } }

View File

@@ -18,7 +18,6 @@ namespace Orchard.Mvc {
private ResourceRegister _stylesheetRegister; private ResourceRegister _stylesheetRegister;
private object _display; private object _display;
private object _new;
private Localizer _localizer = NullLocalizer.Instance; private Localizer _localizer = NullLocalizer.Instance;
private object _layout; private object _layout;
private WorkContext _workContext; private WorkContext _workContext;