Skip to content

Commit

Permalink
remove deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Nov 3, 2024
1 parent 023abbf commit f593aad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
15 changes: 0 additions & 15 deletions include/quill/Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,21 +113,6 @@ class Backend
});
}

/***/
template <typename TFrontendOptions>
[[deprecated(
"This function is deprecated and will be removed in the next version. Use "
"start(BackendOptions, SignalHandlerOptions) instead ")]] QUILL_ATTRIBUTE_COLD static void
start_with_signal_handler(BackendOptions const& options = BackendOptions{},
QUILL_MAYBE_UNUSED std::initializer_list<int> const& catchable_signals =
std::initializer_list<int>{SIGTERM, SIGINT, SIGABRT, SIGFPE, SIGILL, SIGSEGV},
uint32_t signal_handler_timeout_seconds = 20u,
std::string const& signal_handler_logger = {})
{
SignalHandlerOptions sho{catchable_signals, signal_handler_timeout_seconds, signal_handler_logger};
start<TFrontendOptions>(options, sho);
}

/**
* Stops the backend thread.
* @note thread-safe
Expand Down
10 changes: 1 addition & 9 deletions include/quill/sinks/FileSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,7 @@ class FileSinkConfig
* @param value True to perform fsync, false otherwise.
*/
QUILL_ATTRIBUTE_COLD void set_fsync_enabled(bool value) { _fsync_enabled = value; }

[[deprecated(
"This function is deprecated and will be removed in the next version. Use set_fsync_enabled() "
"instead.")]]
QUILL_ATTRIBUTE_COLD void set_do_fsync(bool value)
{
_fsync_enabled = value;
}


/**
* @brief Sets the open mode for the file.
* Valid options for the open mode are 'a' or 'w'. The default value is 'a'.
Expand Down

0 comments on commit f593aad

Please sign in to comment.