Reduce usage of DataManager

This commit is contained in:
Cameron Gutman
2015-12-01 20:56:08 -08:00
parent bfa4856bbe
commit fe616d86c5
5 changed files with 12 additions and 61 deletions
+1 -3
View File
@@ -8,7 +8,6 @@
#import "MDNSManager.h"
#import "TemporaryHost.h"
#import "DataManager.h"
@implementation MDNSManager {
NSNetServiceBrowser* mDNSBrowser;
@@ -47,10 +46,9 @@ static NSString* NV_SERVICE_TYPE = @"_nvstream._tcp";
- (NSArray*) getFoundHosts {
NSMutableArray* hosts = [[NSMutableArray alloc] init];
DataManager* dataMan = [[DataManager alloc] init];
for (NSNetService* service in services) {
if (service.hostName != nil) {
TemporaryHost* host = [dataMan createHost];
TemporaryHost* host = [[TemporaryHost alloc] init];
host.activeAddress = host.address = service.hostName;
host.name = host.address;
[hosts addObject:host];