Browse Source

Removed unused member variable in git.h

merge-requests/395/head
eidheim 7 years ago
parent
commit
b466b46efa
  1. 2
      src/git.cc
  2. 1
      src/git.h

2
src/git.cc

@ -17,7 +17,7 @@ std::string Git::Error::message() noexcept {
return last_error->message;
}
Git::Repository::Diff::Diff(const boost::filesystem::path &path, git_repository *repository) : repository(repository) {
Git::Repository::Diff::Diff(const boost::filesystem::path &path, git_repository *repository) {
blob = std::shared_ptr<git_blob>(nullptr, [](git_blob *blob) {
if(blob)
git_blob_free(blob);

1
src/git.h

@ -43,7 +43,6 @@ public:
private:
friend class Repository;
Diff(const boost::filesystem::path &path, git_repository *repository);
git_repository *repository = nullptr;
std::shared_ptr<git_blob> blob = nullptr;
git_diff_options options;
static int hunk_cb(const git_diff_delta *delta, const git_diff_hunk *hunk, void *payload) noexcept;

Loading…
Cancel
Save