Skip to content

Commit 1b01b2c

Browse files
committed
remove fmt/ stuff
1 parent cd491bb commit 1b01b2c

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

src/mrcal-uncertainty.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,6 @@
2424

2525
using namespace cv;
2626

27-
template <> struct fmt::formatter<mrcal_point2_t> {
28-
constexpr auto parse(format_parse_context &ctx) { return ctx.begin(); }
29-
30-
template <typename FormatContext>
31-
auto format(const mrcal_point2_t &p, FormatContext &ctx) const {
32-
return fmt::format_to(ctx.out(), "({}, {})", p.x, p.y);
33-
}
34-
};
35-
36-
template <> struct fmt::formatter<mrcal_point3_t> {
37-
constexpr auto parse(format_parse_context &ctx) { return ctx.begin(); }
38-
39-
template <typename FormatContext>
40-
auto format(const mrcal_point3_t &p, FormatContext &ctx) const {
41-
return fmt::format_to(ctx.out(), "({}, {}, {})", p.x, p.y, p.z);
42-
}
43-
};
44-
4527
using EigenPoint2 = Eigen::Matrix<double, 2, 1>;
4628
using EigenPoint3 = Eigen::Matrix<double, 3, 1>;
4729

src/mrcal-uncertainty.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "spy.hpp"
2121
#include <Eigen/Dense>
2222
#include <cholmod.h>
23-
#include <fmt/core.h>
24-
#include <fmt/ranges.h>
2523
#include <mrcal.h>
2624
#include <opencv2/core/types.hpp>
2725
#include <poseutils.h>

src/mrcal_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ int main() {
234234
if (!outFile)
235235
return -1;
236236
for (auto &point : ret) {
237-
outFile << fmt::format("{}, {}, {}\n", point.x, point.y, point.z);
237+
outFile << point.x << "," << point.y << "," << point.z << "\n";
238238
}
239239
}
240240
}

0 commit comments

Comments
 (0)