Skip to content

Commit

Permalink
Removed include/fmt folder
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Dec 28, 2024
1 parent 96decf4 commit 7cfe4fc
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 22 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ set(SPDLOG_HEADERS
"include/spdlog/details/null_mutex.h"
"include/spdlog/details/os.h"
"include/spdlog/details/context.h"
"include/spdlog/fmt/bin_to_hex.h"
"include/spdlog/fmt/fmt.h"
"include/spdlog/bin_to_hex.h"
"include/spdlog/sinks/android_sink.h"
"include/spdlog/sinks/base_sink.h"
"include/spdlog/sinks/basic_file_sink.h"
Expand Down
2 changes: 1 addition & 1 deletion example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void async_example() {
// {:p} - don't print the position on each line start.
// {:n} - don't split the output to lines.

#include "spdlog/fmt/bin_to_hex.h"
#include "spdlog/bin_to_hex.h"
void binary_example() {
std::vector<char> buf;
for (int i = 0; i < 80; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <cctype>

#include "../common.h"
#include "common.h"

#if defined(__has_include)
#if __has_include(<version>)
Expand Down
4 changes: 2 additions & 2 deletions include/spdlog/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <cstdint>

#include "./source_loc.h"
#include "fmt/base.h"
#include "fmt/xchar.h"

#if defined(SPDLOG_SHARED_LIB)
#if defined(_WIN32)
Expand All @@ -30,8 +32,6 @@
#define SPDLOG_API
#endif

#include "fmt/fmt.h"

#define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string)
#define SPDLOG_FMT_STRING(format_string) FMT_STRING(format_string)

Expand Down
1 change: 0 additions & 1 deletion include/spdlog/details/fmt_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <type_traits>

#include "../common.h"
#include "../fmt/fmt.h"

// Some fmt helpers to efficiently format and pad ints and strings
namespace spdlog {
Expand Down
9 changes: 0 additions & 9 deletions include/spdlog/fmt/fmt.h

This file was deleted.

1 change: 0 additions & 1 deletion include/spdlog/sinks/hourly_file_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "../details/file_helper.h"
#include "../details/null_mutex.h"
#include "../details/os.h"
#include "../fmt/fmt.h"
#include "./base_sink.h"

namespace spdlog {
Expand Down
2 changes: 1 addition & 1 deletion include/spdlog/stopwatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <chrono>

#include "fmt/fmt.h"
#include "fmt/base.h"

// Stopwatch support for spdlog (using std::chrono::steady_clock).
// Displays elapsed seconds since construction as double.
Expand Down
1 change: 0 additions & 1 deletion src/pattern_formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "spdlog/details/fmt_helper.h"
#include "spdlog/details/log_msg.h"
#include "spdlog/details/os.h"
#include "spdlog/fmt/fmt.h"
#include "spdlog/formatter.h"

namespace spdlog {
Expand Down
1 change: 0 additions & 1 deletion src/sinks/async_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <cassert>
#include <memory>
#include <mutex>

#include "spdlog/common.h"
#include "spdlog/details/mpmc_blocking_q.h"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_bin_to_hex.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#include "includes.h"
#include "spdlog/fmt/bin_to_hex.h"
#include "spdlog/bin_to_hex.h"
#include "spdlog/sinks/ostream_sink.h"
#include "test_sink.h"

Expand Down
1 change: 0 additions & 1 deletion tests/test_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "spdlog/details/null_mutex.h"
#include "spdlog/details/os.h"
#include "spdlog/fmt/fmt.h"
#include "spdlog/sinks/base_sink.h"

namespace spdlog {
Expand Down

0 comments on commit 7cfe4fc

Please sign in to comment.