mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +08:00
Remove unused fields
--HG-- branch : dev
This commit is contained in:
@@ -7,8 +7,6 @@ using Microsoft.Build.Utilities;
|
|||||||
|
|
||||||
namespace MSBuild.Orchard.Tasks {
|
namespace MSBuild.Orchard.Tasks {
|
||||||
public class FileUpdateLines : Task {
|
public class FileUpdateLines : Task {
|
||||||
private bool _multiline;
|
|
||||||
private bool _singleline;
|
|
||||||
private int _replacementCount = -1;
|
private int _replacementCount = -1;
|
||||||
private Encoding _encodingValue { get; set; }
|
private Encoding _encodingValue { get; set; }
|
||||||
|
|
||||||
@@ -33,15 +31,10 @@ namespace MSBuild.Orchard.Tasks {
|
|||||||
|
|
||||||
public override bool Execute() {
|
public override bool Execute() {
|
||||||
RegexOptions options = RegexOptions.None;
|
RegexOptions options = RegexOptions.None;
|
||||||
|
options |= RegexOptions.Singleline;
|
||||||
if (this.IgnoreCase) {
|
if (this.IgnoreCase) {
|
||||||
options |= RegexOptions.IgnoreCase;
|
options |= RegexOptions.IgnoreCase;
|
||||||
}
|
}
|
||||||
if (this._multiline) {
|
|
||||||
options |= RegexOptions.Multiline;
|
|
||||||
}
|
|
||||||
if (this._singleline) {
|
|
||||||
options |= RegexOptions.Singleline;
|
|
||||||
}
|
|
||||||
if (this._replacementCount == 0) {
|
if (this._replacementCount == 0) {
|
||||||
this._replacementCount = -1;
|
this._replacementCount = -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user