ios: Remove gitInit method

We use the init method from dart_git instead.
This commit is contained in:
Vishesh Handa
2020-10-18 10:35:58 +02:00
parent 6c1860071c
commit 05be1ce397

View File

@ -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"];