Skip to content

Commit

Permalink
Fix warnings on usued imports
Browse files Browse the repository at this point in the history
  • Loading branch information
orontee committed Oct 5, 2023
1 parent 3223338 commit 8f84cc1
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/app.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <array>
#include <boost/log/trivial.hpp>
#include <cctype>
#include <cstring>
#include <ctime>
Expand All @@ -18,7 +19,6 @@
#include "events.h"
#include "history.h"
#include "l10n.h"
#include "logging.h"
#include "model.h"
#include "service.h"
#include "state.h"
Expand Down
3 changes: 1 addition & 2 deletions src/config.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#pragma once

#include <boost/log/trivial.hpp>
#include <inkview.h>
#include <memory>
#include <string>

#include "logging.h"

namespace taranis {

struct Config {
Expand Down
2 changes: 1 addition & 1 deletion src/history.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#pragma once

#include <algorithm>
#include <boost/log/trivial.hpp>
#include <experimental/optional>
#include <fstream>
#include <inkview.h>
#include <memory>

#include "logging.h"
#include "model.h"

namespace std {
Expand Down
5 changes: 3 additions & 2 deletions src/http.cc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#include "http.h"

#include "errors.h"
#include "logging.h"
#include <boost/log/trivial.hpp>
#include <sstream>

#include "errors.h"

Json::Value taranis::HttpClient::get(const std::string &url) {
BOOST_LOG_TRIVIAL(debug) << "Sending GET request " << url;

Expand Down
3 changes: 1 addition & 2 deletions src/icons.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#pragma once

#include <boost/log/trivial.hpp>
#include <inkview.h>
#include <string>

#include "logging.h"

extern const ibitmap icon_01n_2x;
extern const ibitmap icon_02n_2x;
extern const ibitmap icon_03n_2x;
Expand Down
3 changes: 1 addition & 2 deletions src/l10n.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#pragma once

#include <boost/log/trivial.hpp>
#include <cstring>
#include <inkview.h>

#include "logging.h"

namespace taranis {
inline void initialize_translations() {
const auto current_language = currentLang();
Expand Down
3 changes: 0 additions & 3 deletions src/logging.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once

#include <boost/log/trivial.hpp>
// Unused here but exposes the macros to consumers

namespace taranis {

void initialize_logging(bool verbose_log);
Expand Down
1 change: 1 addition & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <boost/log/trivial.hpp>
#include <inkview.h>
#include <stdexcept>

Expand Down
3 changes: 2 additions & 1 deletion src/service.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include "service.h"

#include <boost/log/trivial.hpp>

#include "errors.h"
#include "logging.h"

namespace taranis {

Expand Down
5 changes: 2 additions & 3 deletions src/state.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "state.h"

#include "json/writer.h"
#include <boost/log/trivial.hpp>
#include <fstream>
#include <inkview.h>
#include <iomanip>

#include "logging.h"
#include <json/writer.h>

constexpr char LOCATION_HISTORY_KEY[]{"location_history"};

Expand Down
6 changes: 3 additions & 3 deletions src/ui.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "ui.h"

#include "boost/log/trivial.hpp"
#include <boost/log/trivial.hpp>
#include <inkview.h>

#include "events.h"
#include "history.h"
#include "inkview.h"
#include "logging.h"
#include "menu.h"
#include "model.h"

Expand Down

0 comments on commit 8f84cc1

Please sign in to comment.