From d5f9d87da2229012518299b6fde68d3ac3857f3a Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Fri, 14 Feb 2020 12:43:11 -0800 Subject: [PATCH] base: remove Errorf/ErrnoErrorf work around This is no longer needed Test: build Change-Id: Ied9b26ff517906d662f90a31c98829843c1e9a9f --- base/include/android-base/result.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/base/include/android-base/result.h b/base/include/android-base/result.h index 4a595528b..5e65876c5 100644 --- a/base/include/android-base/result.h +++ b/base/include/android-base/result.h @@ -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 inline Error ErrorfImpl(const T&& fmt, const Args&... args) { return Error(false, ErrorCode(0, args...), fmt::format(fmt, args...));