X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2Futil.h;h=7562707ddd1c491755dc8ea5121637918ba1b844;hb=5d70f79b5ef6ea2de4f72a37b2d96e2601e40a22;hp=f380fed74359034a843756256d6e7a79b0ff22b5;hpb=a30bfd6cd47f387e060fb06d2ba688a491e6eaec;p=cascardo%2Flinux.git diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index f380fed74359..7562707ddd1c 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -266,19 +266,6 @@ bool strglobmatch(const char *str, const char *pat); bool strlazymatch(const char *str, const char *pat); unsigned long convert_unit(unsigned long value, char *unit); -#ifndef ESC -#define ESC 27 -#endif - -static inline bool is_exit_key(int key) -{ - char up; - if (key == CTRL('c') || key == ESC) - return true; - up = toupper(key); - return up == 'Q'; -} - #define _STR(x) #x #define STR(x) _STR(x)