From b8e9af4b105960e04ad82a6ca34c60625fc0362b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Sun, 17 Jan 2021 03:09:28 -0800 Subject: [PATCH] remove unused macros SKIP_IF_BPF{,_NOT}_SUPPORTED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test: builds, atest, TreeHugger Bug: 167500195 Signed-off-by: Maciej Żenczykowski Change-Id: Ic740b1102fcf735516123eee2c6a3d5caa0892f9 --- libbpf_android/include/bpf/BpfUtils.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libbpf_android/include/bpf/BpfUtils.h b/libbpf_android/include/bpf/BpfUtils.h index 9181933..0177955 100644 --- a/libbpf_android/include/bpf/BpfUtils.h +++ b/libbpf_android/include/bpf/BpfUtils.h @@ -61,19 +61,6 @@ inline bool isBpfSupported() { return getBpfSupportLevel() != BpfLevel::NONE; } -#define SKIP_IF_BPF_NOT_SUPPORTED \ - do { \ - if (!android::bpf::isBpfSupported()) { \ - GTEST_LOG_(INFO) << "This test is skipped since bpf is not available\n"; \ - return; \ - } \ - } while (0) - -#define SKIP_IF_BPF_SUPPORTED \ - do { \ - if (android::bpf::isBpfSupported()) return; \ - } while (0) - #define SKIP_IF_EXTENDED_BPF_NOT_SUPPORTED \ do { \ if (android::bpf::getBpfSupportLevel() < android::bpf::BpfLevel::EXTENDED_4_14) { \