Skip to content

Commit

Permalink
Remove superfluous method
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 21, 2024
1 parent a92c165 commit e080390
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion include/tao/pq/result.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ namespace tao::pq
public:
[[nodiscard]] auto has_rows_affected() const noexcept -> bool;
[[nodiscard]] auto rows_affected() const -> std::size_t;
[[nodiscard]] auto is_final() const -> bool;

[[nodiscard]] auto columns() const noexcept -> std::size_t
{
Expand Down
18 changes: 0 additions & 18 deletions src/lib/pq/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,6 @@ namespace tao::pq
return internal::from_chars< std::size_t >( str );
}

auto result::is_final() const -> bool
{
switch( PQresultStatus( m_pgresult.get() ) ) {
case PGRES_COMMAND_OK:
case PGRES_TUPLES_OK:
return true;

case PGRES_SINGLE_TUPLE:
#if defined( LIBPQ_HAS_CHUNK_MODE )
case PGRES_TUPLES_CHUNK:
#endif
return false;

default:
TAO_PQ_UNREACHABLE; // LCOV_EXCL_LINE
}
}

auto result::name( const std::size_t column ) const -> std::string
{
if( column >= m_columns ) {
Expand Down

0 comments on commit e080390

Please sign in to comment.