mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing some compilation warnings.
--HG-- branch : dev
This commit is contained in:
@@ -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() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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; } }
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user