Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96307c24 authored by Treehugger Robot's avatar Treehugger Robot
Browse files

Merge "base: remove Errorf/ErrnoErrorf work around" am: b9ac1178 am: 2ef5b50b

Change-Id: I99619826f0919b0578099e2ab55691a37d9f8dc2
parents 560b4a0c 2ef5b50b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -191,11 +191,6 @@ inline int ErrorCode(int code, T&& t, const Args&... args) {
  return ErrorCode(code, args...);
}

// TODO(tomcherry): Remove this once we've removed all `using android::base::Errorf` and `using
// android::base::ErrnoErrorf` lines.
enum Errorf {};
enum ErrnoErrorf {};

template <typename T, typename... Args>
inline Error ErrorfImpl(const T&& fmt, const Args&... args) {
  return Error(false, ErrorCode(0, args...), fmt::format(fmt, args...));