Browse Source

clear code

marinofaggiana 5 years ago
parent
commit
ad0ba923ca

+ 0 - 2
iOSClient/Library/OCCommunicationLib/OCFileDto.h

@@ -63,7 +63,5 @@
 @property (nonatomic, copy) NSString *ownerId;
 @property (nonatomic, copy) NSString *ownerDisplayName;
 @property BOOL commentsUnread;
-@property (nonatomic, copy) NSString *note;
-@property (nonatomic, copy) NSString *sharees;
 
 @end

+ 0 - 2
iOSClient/Library/OCCommunicationLib/OCFileDto.m

@@ -49,8 +49,6 @@
         self.mountType = @"";
         self.ownerId = @"";
         self.ownerDisplayName = @"";
-        self.note = @"";
-        self.sharees = @"";
     }
     
     return self;

+ 1 - 3
iOSClient/Library/OCCommunicationLib/OCWebDavClient/OCWebDAVClient.m

@@ -76,9 +76,7 @@ NSString *const NCResource = @"<d:displayname/>"
                               "<has-preview xmlns=\"http://nextcloud.org/ns\"/>"
                               "<trashbin-filename xmlns=\"http://nextcloud.org/ns\"/>"
                               "<trashbin-original-location xmlns=\"http://nextcloud.org/ns\"/>"
-                              "<trashbin-deletion-time xmlns=\"http://nextcloud.org/ns\"/>"
-                              "<note xmlns=\"http://nextcloud.org/ns\"/>"
-                              "<sharees xmlns=\"http://nextcloud.org/ns\"/>";
+                              "<trashbin-deletion-time xmlns=\"http://nextcloud.org/ns\"/>";
 
 @interface OCWebDAVClient()
 

+ 2 - 16
iOSClient/Library/OCCommunicationLib/OCWebDavClient/Parsers/NCXMLListParser.m

@@ -138,14 +138,8 @@
         
     } else if ([elementName isEqualToString:@"d:creationdate"] && [self.xmlChars length]) {
         
-        NSDateFormatter *dateFormatter = [NSDateFormatter new];
-        [dateFormatter setDateFormat:@"EEE, dd MMM y HH:mm:ss zzz"];
-        [dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]];
-        NSDate *date = [dateFormatter dateFromString:[NSString stringWithString:self.xmlChars]];
-        if (date) {
-            self.currentFile.creationDate =  [date timeIntervalSince1970];
-        }
-
+        NSLog(@"Not yet implemented");
+        
     } else if ([elementName isEqualToString:@"d:getetag"] && [self.xmlChars length]) {
         
         self.currentFile.etag = [[self.xmlChars stringByReplacingOccurrencesOfString:@"\"" withString:@""] lowercaseString];
@@ -214,14 +208,6 @@
         
         self.currentFile.trashbinDeletionTime = [self.xmlChars longLongValue];
 
-    } else if ([elementName isEqualToString:@"nc:note"] && [self.xmlChars length]) {
-        
-        self.currentFile.note = [NSString stringWithString:self.xmlChars];
-
-    } else if ([elementName isEqualToString:@"nc:sharees"] && [self.xmlChars length]) {
-
-       self.currentFile.sharees = [NSString stringWithString:self.xmlChars];
-        
     } else if ([elementName isEqualToString:@"d:collection"]) {
         
         self.currentFile.isDirectory = true;