From b466b46efaef59c84256dd9547c2c6df1db2463c Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 14 Feb 2019 19:14:17 +0100 Subject: [PATCH] Removed unused member variable in git.h --- src/git.cc | 2 +- src/git.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/git.cc b/src/git.cc index 822a65c..d2ae2c0 100644 --- a/src/git.cc +++ b/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(nullptr, [](git_blob *blob) { if(blob) git_blob_free(blob); diff --git a/src/git.h b/src/git.h index ea80b05..3945c7b 100644 --- a/src/git.h +++ b/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 blob = nullptr; git_diff_options options; static int hunk_cb(const git_diff_delta *delta, const git_diff_hunk *hunk, void *payload) noexcept;