Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Jul 14, 2024
1 parent bc0e9dd commit d65d3c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/main/cpp/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ Logger::Logger(const LogString& name1)
}

#if LOG4CXX_ABI_VERSION <= 15
Logger::Logger(Pool& p, const LogString& name1)
: m_priv(std::make_unique<LoggerPrivate>(name1))
, m_threshold(0)
Logger::Logger(Pool& p, const LogString& name)
: Logger(name)
{
}
#endif
Expand Down
4 changes: 1 addition & 3 deletions src/main/include/log4cxx/defaultloggerfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class LOG4CXX_EXPORT DefaultLoggerFactory :
END_LOG4CXX_CAST_MAP()

[[ deprecated( "Pool is no longer required" ) ]]
LoggerPtr makeNewLoggerInstance(
helpers::Pool& pool,
const LogString& name) const override;
LoggerPtr makeNewLoggerInstance(helpers::Pool& pool, const LogString& name) const override;
};
#endif
} // namespace log4cxx
Expand Down

0 comments on commit d65d3c2

Please sign in to comment.