refactor: remove unnecessary git_libgit2_init()

This commit is contained in:
Aleksey Kulikov 2021-09-27 12:05:18 +03:00
parent b5561212e0
commit b15b56f0ae
5 changed files with 9 additions and 14 deletions

View file

@ -6,16 +6,13 @@ import 'git_types.dart';
import 'patch.dart';
import 'oid.dart';
import 'repository.dart';
import 'util.dart';
class Blob {
/// Initializes a new instance of [Blob] class from provided pointer to
/// blob object in memory.
///
/// Should be freed with `free()` to release allocated memory.
Blob(this._blobPointer) {
libgit2.git_libgit2_init();
}
Blob(this._blobPointer);
/// Initializes a new instance of [Blob] class from provided
/// [Repository] object and [sha] hex string.