Skip to content

Commit f562d55

Browse files
Remove old and new kruft, organize (#204)
1 parent 0a9f939 commit f562d55

File tree

4 files changed

+0
-62
lines changed

4 files changed

+0
-62
lines changed

.circleci/config.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

Leanplum-SDK/Classes/Utilities/Vendor/SocketIO/Leanplum_SocketIO.m

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ - (void) sendHeartbeat
223223

224224
- (void) send:(Leanplum_SocketIOPacket *)packet
225225
{
226-
[self log:@"send()"];
227226
NSNumber *type = [packet typeAsNumber];
228227
NSMutableArray *encoded = [NSMutableArray arrayWithObject:type];
229228

@@ -257,16 +256,10 @@ - (void) send:(Leanplum_SocketIOPacket *)packet
257256
NSString *req = [encoded componentsJoinedByString:@":"];
258257
if (!_isConnected)
259258
{
260-
[self log:[NSString stringWithFormat:@"queue >>> %@", req]];
261259
[_queue addObject:packet];
262260
}
263261
else
264262
{
265-
if ([req length] > 1000) {
266-
[self log:[NSString stringWithFormat:@"send() >>> (%lu chars)", (unsigned long) [req length]]];
267-
} else {
268-
[self log:[NSString stringWithFormat:@"send() >>> %@", req]];
269-
}
270263
[_webSocket send:req];
271264

272265
if ([_delegate respondsToSelector:@selector(socketIO:didSendMessage:)])
@@ -308,8 +301,6 @@ + (NSArray *) arrayOfCaptureComponentsOfString:(NSString *)data matchedByRegex:(
308301

309302
- (void) onData:(NSString *)data
310303
{
311-
[self log:[NSString stringWithFormat:@"onData %@", data]];
312-
313304
// data arrived -> reset timeout
314305
[self setTimeout];
315306

@@ -337,25 +328,21 @@ - (void) onData:(NSString *)data
337328
{
338329
case 0:
339330
// TODO: Not sure about the purpose of this one --Ruben
340-
[self log:@"disconnect"];
341331
[self onDisconnect];
342332
break;
343333

344334
case 1:
345335
// TODO: Not sure about the purpose of this one --Ruben
346-
[self log:@"connect"];
347336
// from socket.io.js ... not sure when data will contain sth?!
348337
// packet.qs = data || '';
349338
[self onConnect];
350339
break;
351340

352341
case 2:
353-
[self log:@"heartbeat"];
354342
[self sendHeartbeat];
355343
break;
356344

357345
case 3:
358-
[self log:@"message"];
359346
if (packet.data && ![packet.data isEqualToString:@""])
360347
{
361348
if ([_delegate respondsToSelector:@selector(socketIO:didReceiveMessage:)])
@@ -366,7 +353,6 @@ - (void) onData:(NSString *)data
366353
break;
367354

368355
case 4:
369-
[self log:@"json"];
370356
if (packet.data && ![packet.data isEqualToString:@""])
371357
{
372358
if ([_delegate respondsToSelector:@selector(socketIO:didReceiveJSON:)])
@@ -377,7 +363,6 @@ - (void) onData:(NSString *)data
377363
break;
378364

379365
case 5:
380-
[self log:@"event"];
381366
if (packet.data && ![packet.data isEqualToString:@""])
382367
{
383368
NSDictionary *json = [packet dataAsJSON];
@@ -414,14 +399,12 @@ - (void) onData:(NSString *)data
414399
}
415400

416401
- (void)handleAck:(Leanplum_SocketIOPacket *)packet regexPieces:(NSString *)regexPieces {
417-
[self log:@"ack"];
418402
NSArray *pieces = [Leanplum_SocketIO arrayOfCaptureComponentsOfString:packet.data
419403
matchedByRegex:regexPieces];
420404

421405
if ([pieces count] > 0) {
422406
NSArray *piece = pieces[0];
423407
int ackId = [piece[1] intValue];
424-
[self log:[NSString stringWithFormat:@"ack id found: %d", ackId]];
425408

426409
NSString *argsStr = piece[3];
427410
id argsData = nil;
@@ -451,8 +434,6 @@ - (void)handleAck:(Leanplum_SocketIOPacket *)packet regexPieces:(NSString *)rege
451434

452435
- (void) doQueue
453436
{
454-
[self log:[NSString stringWithFormat:@"doQueue() >> %lu", (unsigned long)[_queue count]]];
455-
456437
// TODO send all packets at once ... not as separate packets
457438
while ([_queue count] > 0)
458439
{
@@ -464,8 +445,6 @@ - (void) doQueue
464445

465446
- (void) onConnect
466447
{
467-
[self log:@"onConnect()"];
468-
469448
_isConnected = YES;
470449
_isConnecting = NO;
471450

@@ -482,7 +461,6 @@ - (void) onConnect
482461

483462
- (void) onDisconnect
484463
{
485-
[self log:@"onDisconnect()"];
486464
BOOL wasConnected = _isConnected;
487465

488466
_isConnected = NO;
@@ -528,7 +506,6 @@ - (void) onTimeout
528506

529507
- (void) setTimeout
530508
{
531-
[self log:@"setTimeout()"];
532509
if (_timeout != nil)
533510
{
534511
[_timeout invalidate];

0 commit comments

Comments
 (0)