Skip to content

Commit

Permalink
Remove unused entry constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Jan 17, 2025
1 parent b07e26f commit fe2ef76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions include/tmp/entry
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ public:
bool operator>=(const entry& rhs) const noexcept;

protected:
/// Creates a temporary entry which owns the given path and handle
/// @param path A path to manage
/// @param handle An implementation-defined handle to this entry
explicit entry(std::filesystem::path path, native_handle_type handle);

/// Creates a temporary entry which owns the given path and handle
/// @param handle A pair of a path and a handle to manage
explicit entry(std::pair<std::filesystem::path, native_handle_type> handle);
Expand Down
7 changes: 2 additions & 5 deletions src/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,9 @@ void move(const fs::path& from, const fs::path& to, std::error_code& ec) {
}
} // namespace

entry::entry(fs::path path, native_handle_type handle)
: pathobject(std::move(path)),
handle(handle) {}

entry::entry(std::pair<std::filesystem::path, native_handle_type> handle)
: entry(std::move(handle.first), handle.second) {}
: pathobject(std::move(handle.first)),
handle(handle.second) {}

entry::entry(entry&& other) noexcept
: pathobject(std::move(other.pathobject)),
Expand Down

0 comments on commit fe2ef76

Please sign in to comment.