Skip to content

Commit 10062c4

Browse files
committed
Review feedback
1 parent d82f990 commit 10062c4

File tree

4 files changed

+14
-27
lines changed

4 files changed

+14
-27
lines changed

cpp/src/arrow/compute/kernels/scalar_temporal_binary.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ using chrono::weeks;
5353
using chrono::year_month_day;
5454
using chrono::year_month_weekday;
5555
using chrono::years;
56-
using chrono::literals::dec;
57-
using chrono::literals::jan;
58-
using chrono::literals::last;
59-
using chrono::literals::mon;
60-
using chrono::literals::sun;
61-
using chrono::literals::thu;
62-
using chrono::literals::wed;
56+
using chrono::dec;
57+
using chrono::jan;
58+
using chrono::last;
59+
using chrono::mon;
60+
using chrono::sun;
61+
using chrono::thu;
62+
using chrono::wed;
6363
using internal::applicator::ScalarBinaryNotNullStatefulEqualTypes;
6464

6565
using DayOfWeekState = OptionsWrapper<DayOfWeekOptions>;

cpp/src/arrow/compute/kernels/scalar_temporal_test.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ using internal::StringFormatter;
3939

4040
namespace compute {
4141

42-
TEST(ChronoConfig, LogChronoBackend) {
43-
std::cout << "ARROW_USE_STD_CHRONO=" << ARROW_USE_STD_CHRONO << std::endl;
44-
}
45-
4642
class ScalarTemporalTest : public ::testing::Test {
4743
public:
4844
const char* date32s =

cpp/src/arrow/compute/kernels/scalar_temporal_unary.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ using chrono::year;
6060
using chrono::year_month_day;
6161
using chrono::year_month_weekday;
6262
using chrono::years;
63-
using chrono::literals::dec;
64-
using chrono::literals::jan;
65-
using chrono::literals::last;
66-
using chrono::literals::mon;
67-
using chrono::literals::sun;
68-
using chrono::literals::thu;
69-
using chrono::literals::wed;
63+
using chrono::dec;
64+
using chrono::jan;
65+
using chrono::last;
66+
using chrono::mon;
67+
using chrono::sun;
68+
using chrono::thu;
69+
using chrono::wed;
7070
using std::chrono::duration_cast;
7171
using std::chrono::hours;
7272
using std::chrono::minutes;

cpp/src/arrow/util/chrono_internal.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,21 +156,15 @@ std::string format(const char* fmt, const Duration& d) {
156156
return std::vformat(std::string("{:") + fmt + "}", std::make_format_args(d));
157157
}
158158

159-
// Literals namespace
160-
namespace literals {
161-
// Month literals
162159
inline constexpr std::chrono::month jan = std::chrono::January;
163160
inline constexpr std::chrono::month dec = std::chrono::December;
164161

165-
// Weekday literals
166162
inline constexpr std::chrono::weekday sun = std::chrono::Sunday;
167163
inline constexpr std::chrono::weekday mon = std::chrono::Monday;
168164
inline constexpr std::chrono::weekday wed = std::chrono::Wednesday;
169165
inline constexpr std::chrono::weekday thu = std::chrono::Thursday;
170166

171-
// last specifier
172167
inline constexpr std::chrono::last_spec last = std::chrono::last;
173-
} // namespace literals
174168

175169
#else // !ARROW_USE_STD_CHRONO
176170

@@ -251,8 +245,6 @@ std::basic_ostream<CharT, Traits>& to_stream(
251245
return vendored::to_stream(os, fmt, zt);
252246
}
253247

254-
// Literals namespace
255-
namespace literals {
256248
inline constexpr vendored::month jan = vendored::jan;
257249
inline constexpr vendored::month dec = vendored::dec;
258250

@@ -262,7 +254,6 @@ inline constexpr vendored::weekday wed = vendored::wed;
262254
inline constexpr vendored::weekday thu = vendored::thu;
263255

264256
inline constexpr vendored::last_spec last = vendored::last;
265-
} // namespace literals
266257

267258
#endif // ARROW_USE_STD_CHRONO
268259

0 commit comments

Comments
 (0)