From 05be1ce39753c5ae5cf8c19487780d7cbf4b4d03 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 18 Oct 2020 10:35:58 +0200 Subject: [PATCH] ios: Remove gitInit method We use the init method from dart_git instead. --- ios/Runner/AppDelegate.m | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ios/Runner/AppDelegate.m b/ios/Runner/AppDelegate.m index 09073de6..e2c71bec 100644 --- a/ios/Runner/AppDelegate.m +++ b/ios/Runner/AppDelegate.m @@ -145,21 +145,6 @@ static FlutterMethodChannel* gitChannel = 0; return; } } - else if ([@"gitInit" isEqualToString:method]) { - NSString *folderPath = arguments[@"folderPath"]; - - if (folderPath == nil || [folderPath length] == 0) { - result([FlutterError errorWithCode:@"InvalidParams" - message:@"Invalid folderPath" details:nil]); - return; - } - - int err = gj_git_init([folderPath UTF8String]); - if (!handleError(result, err)) { - result(@YES); - return; - } - } else if ([@"gitResetLast" isEqualToString:method]) { NSString *folderPath = arguments[@"folderPath"];