Skip to content

Commit

Permalink
Merge branch 'libalpm-test' of https://github.com/BurntRanch/TabAUR i…
Browse files Browse the repository at this point in the history
…nto libalpm-test
  • Loading branch information
BurntRanch committed Apr 16, 2024
2 parents 232beff + bd700ca commit f378da7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
14 changes: 2 additions & 12 deletions include/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

#include <string>
#include <vector>
#include <iostream>
#include <memory>
#include <optional>
#include <iostream>

#include "fmt/base.h"
#include "fmt/color.h"
#include "fmt/ranges.h"
#include "config.hpp"

using std::string;
Expand Down Expand Up @@ -96,17 +97,6 @@ void log_printf(int log, string fmt, Args&&... args) {
fmt::print(fmt, std::forward<Args>(args)...);
}

// could use fmt::join, but doesn't work with vector<const char*>
template <typename T>
void print_vec(std::vector<T> vec, bool display) {
if(!display)
return;

for(auto& i : vec)
std::cout << i << " ";
std::cout << std::endl;
}

template <typename T>
T sanitize(T beg, T end) {
T dest = beg;
Expand Down
1 change: 0 additions & 1 deletion src/taur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "util.hpp"
#include "taur.hpp"
#include "config.hpp"
#include <fmt/ranges.h>

namespace fs = std::filesystem;

Expand Down
2 changes: 1 addition & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <unistd.h>
#pragma GCC diagnostic ignored "-Wignored-attributes"

#include "util.hpp"
#include "config.hpp"
#include "taur.hpp"
#include <iostream>
#include <filesystem>
#include <fmt/ranges.h>

Expand Down

0 comments on commit f378da7

Please sign in to comment.