Răsfoiți Sursa

remove old code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 ani în urmă
părinte
comite
8948433957

+ 1 - 1
iOSClient/Extensions/UIApplication+Orientation.swift

@@ -27,7 +27,7 @@ extension UIApplication {
     var isLandscape: Bool {
         if UIDevice.current.orientation.isValidInterfaceOrientation {
             return UIDevice.current.orientation.isLandscape
-        } else  {
+        } else {
             return windows.first?.windowScene?.interfaceOrientation.isLandscape ?? false
         }
     }

+ 0 - 19
iOSClient/Security/NCEndToEndEncryption.m

@@ -906,25 +906,6 @@
     return keyData;
 }
 
-- (NSString *)getMD5:(NSString *)input
-{
-    // Create pointer to the string as UTF8
-    const char *ptr = [input cStringUsingEncoding:NSUTF8StringEncoding];
-    
-    // Create byte array of unsigned chars
-    unsigned char md5Buffer[CC_MD5_DIGEST_LENGTH];
-    
-    // Create 16 byte MD5 hash value, store in buffer
-    CC_MD5(ptr, (unsigned int)strlen(ptr), md5Buffer);
-    
-    // Convert MD5 value in the buffer to NSString of hex values
-    NSMutableString *output = [NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH * 2];
-    for(int i = 0; i < CC_MD5_DIGEST_LENGTH; i++)
-        [output appendFormat:@"%02x",md5Buffer[i]];
-    
-    return output;
-}
-
 - (NSString *)getSHA1:(NSString *)input
 {
     const char *cstr = [input cStringUsingEncoding:NSUTF8StringEncoding];