Skip to content

Commit 7549b97

Browse files
committed
Clean up some warnings
1 parent 0e040a1 commit 7549b97

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

PushSharp.Amazon/AdmConnection.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public AdmServiceBroker (AdmConfiguration configuration) : base (new AdmServiceC
3636

3737
public class AdmServiceConnection : IServiceConnection<AdmNotification>
3838
{
39-
long waitCounter = 0;
40-
41-
4239
public AdmServiceConnection (AdmConfiguration configuration)
4340
{
4441
Configuration = configuration;
@@ -110,13 +107,10 @@ public async Task Send (AdmNotification notification)
110107
throw new UnauthorizedAccessException ("Access token failed authorization");
111108
case HttpStatusCode.Forbidden: //403
112109
throw new AdmRateLimitExceededException (reason, notification);
113-
break;
114110
case HttpStatusCode.RequestEntityTooLarge: //413
115111
throw new AdmMessageTooLargeException (notification);
116-
break;
117112
default:
118113
throw new NotificationException ("Unknown ADM Failure", notification);
119-
break;
120114
}
121115
}
122116
catch (Exception ex)

PushSharp.Tests/ApnsTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public async Task Should_Fail_Connect ()
6363
long success = 0;
6464

6565
var server = new TestApnsServer ();
66+
#pragma warning disable 4014
6667
server.Start ();
68+
#pragma warning restore 4014
6769

6870
var config = new ApnsConfiguration ("invalidhost", 2195);
6971
var broker = new ApnsServiceBroker (config);
@@ -116,7 +118,9 @@ public async Task Apns (int expectFailed, List<ApnsNotification> notifications,
116118
server.ResponseFilters.AddRange (responseFilters);
117119

118120
// We don't want to await this, so we can start the server and listen without blocking
121+
#pragma warning disable 4014
119122
server.Start ();
123+
#pragma warning restore 4014
120124

121125
var config = new ApnsConfiguration ("127.0.0.1", 2195) {
122126
InternalBatchSize = batchSize

PushSharp.Tests/BrokerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public void Broker_Send_Many ()
5050

5151

5252
[Test]
53+
#pragma warning disable 1998
5354
public async Task Broker_Some_Fail ()
55+
#pragma warning restore 1998
5456
{
5557
var succeeded = 0;
5658
var failed = 0;

PushSharp.Tests/Servers/TestApnsServer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public TestApnsServer ()
2727

2828
public List<ApnsResponseFilter> ResponseFilters { get; set; }
2929

30+
#pragma warning disable 1998
3031
public async Task Stop ()
32+
#pragma warning restore 1998
3133
{
3234
running = false;
3335

@@ -75,7 +77,9 @@ public async Task Start ()
7577

7678

7779
// Start receiving from the client connection on a new thread
80+
#pragma warning disable 4014
7881
Task.Factory.StartNew (() => {
82+
#pragma warning restore 4014
7983

8084
var sentErrorResponse = false;
8185
var s = socket;

0 commit comments

Comments
 (0)