Skip to content

Commit b5b55e3

Browse files
toncijukic_cptoncijukic_cp
authored andcommitted
Code cleanup.
1 parent 9b03819 commit b5b55e3

26 files changed

Lines changed: 40 additions & 174 deletions

Class Library/ActiveUp.Net.Common/AddressCollection.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ namespace ActiveUp.Net.Mail
2828
#endif
2929
public class AddressCollection : List<Address>
3030
{
31-
/// <summary>
32-
/// The default constructor.
33-
/// </summary>
34-
public AddressCollection()
35-
{
36-
//
37-
}
38-
39-
/// <summary>
31+
/// <summary>
4032
/// Allows the developer to add a collection of Address objects in another one.
4133
/// </summary>
4234
/// <param name="first">The first collection.</param>

Class Library/ActiveUp.Net.Common/Attachment.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ public class Attachment : ActiveUp.Net.Mail.MimePart
2929
{
3030
bool _isLoaded = false;
3131
string _originalPath;
32-
/// <summary>
33-
/// Default constructor.
34-
/// </summary>
35-
public Attachment()
36-
{
37-
38-
}
39-
/*/// <summary>
32+
/*/// <summary>
4033
/// Constructor.
4134
/// </summary>
4235
/// <param name="filePath">Path of the file to be treated as an attachment.</param>

Class Library/ActiveUp.Net.Common/AttachmentCollection.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,7 @@ namespace ActiveUp.Net.Mail
2525
#endif
2626
public class AttachmentCollection : MimePartCollection
2727
{
28-
/// <summary>
29-
/// Default constructor.
30-
/// </summary>
31-
public AttachmentCollection()
32-
{
33-
34-
}
35-
/// <summary>
28+
/// <summary>
3629
/// Add a MimePart to the attachment collection.
3730
/// </summary>
3831
/// <param name="part"></param>

Class Library/ActiveUp.Net.Common/BodyTemplateCollection.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,7 @@ namespace ActiveUp.Net.Mail
2727
#endif
2828
public class BodyTemplateCollection : System.Collections.CollectionBase
2929
{
30-
/// <summary>
31-
/// The default constructor.
32-
/// </summary>
33-
public BodyTemplateCollection()
34-
{
35-
//
36-
// TODO: Add constructor logic here
37-
//
38-
}
39-
40-
/// <summary>
30+
/// <summary>
4131
/// Add a templated body in the collection.
4232
/// </summary>
4333
public void Add(BodyTemplate bodyTemplate)

Class Library/ActiveUp.Net.Common/BounceResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace ActiveUp.Net.Mail
2727
#endif
2828
public class BounceResult
2929
{
30-
private int _level = 0;
30+
private int _level;
3131
private string _email = string.Empty;
3232

3333

Class Library/ActiveUp.Net.Common/Codec.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ public static string ToQuotedPrintable(string input, string fromCharset)
7373
byte[] body = GetEncoding(fromCharset).GetBytes(input);
7474
int index = 0, wrap = 0, check = 0;
7575

76-
byte decim = 0;
77-
7876
for (index = 0; index < body.Length; index++)
7977
{
8078
if (wrap == 0 && index + 73 - check < body.Length)
@@ -90,7 +88,7 @@ public static string ToQuotedPrintable(string input, string fromCharset)
9088
check = 0;
9189
}
9290

93-
decim = body[index];
91+
byte decim = body[index];
9492
if ((decim < 33 || decim == 61 || decim > 126) && decim != 32)
9593
sb.Append("=" + decim.ToString("X").PadLeft(2, '0'));
9694
else

Class Library/ActiveUp.Net.Common/ConditionalCollection.cs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,7 @@ namespace ActiveUp.Net.Mail
3636
#endif
3737
public class ConditionalCollection : System.Collections.CollectionBase
3838
{
39-
/// <summary>
40-
/// The default constructor.
41-
/// </summary>
42-
public ConditionalCollection()
43-
{
44-
//
45-
// TODO: Add constructor logic here
46-
//
47-
}
48-
49-
/// <summary>
39+
/// <summary>
5040
/// Add an Condition object in the collection.
5141
/// </summary>
5242
/// <param name="condition">The Condition.</param>
@@ -175,14 +165,7 @@ public void ClearMatch()
175165
{
176166
foreach (Condition condition in List)
177167
{
178-
if (condition.Operator == OperatorType.NotExists)
179-
{
180-
condition.Match = true;
181-
}
182-
else
183-
{
184-
condition.Match = false;
185-
}
168+
condition.Match = condition.Operator == OperatorType.NotExists;
186169
}
187170
}
188171
/// <summary>

Class Library/ActiveUp.Net.Common/ContentType.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ namespace ActiveUp.Net.Mail
2727
#endif
2828
public class ContentType : StructuredHeaderField
2929
{
30-
public ContentType()
31-
{
32-
33-
}
34-
3530
string _mimeType = "text/plain";
3631

3732
public string Type

Class Library/ActiveUp.Net.Common/DomainKeys.Signature.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public static Signature Parse(string input)
4343
}
4444
public static Signature Parse(string input, Message signedMessage)
4545
{
46-
Signature signature;
47-
signature = signedMessage != null ? new Signature(signedMessage) : new Signature();
46+
Signature signature = signedMessage != null ? new Signature(signedMessage) : new Signature();
4847

4948
MatchCollection matches = Regex.Matches(input, @"[a-zA-Z]+=[^;]+(?=(;|\Z))");
5049
ActiveUp.Net.Mail.Logger.AddEntry(matches.Count.ToString());

Class Library/ActiveUp.Net.Common/EmbeddedObjectCollection.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ namespace ActiveUp.Net.Mail
2525
#endif
2626
public class EmbeddedObjectCollection : MimePartCollection
2727
{
28-
/// <summary>
29-
/// Default constructor.
30-
/// </summary>
31-
public EmbeddedObjectCollection()
32-
{
33-
34-
}
3528
/// <summary>
3629
/// Add a MimePart to the embedded objects collection.
3730
/// </summary>

0 commit comments

Comments
 (0)