mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 18:31:13 +08:00
Remove unused fields
--HG-- branch : dev
This commit is contained in:
parent
4bd6abe055
commit
2b7a604ea7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user