From 228cdd3bfe334d9745b081a13857f5a7a0c86f8a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 May 2025 17:02:26 +0200 Subject: [PATCH] xfree86: xf86Option: drop unused xf86GetOptValReal() Not used anywhere, so no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86Opt.h | 2 -- hw/xfree86/common/xf86Option.c | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/hw/xfree86/common/xf86Opt.h b/hw/xfree86/common/xf86Opt.h index 9a6673d12..34d936bc7 100644 --- a/hw/xfree86/common/xf86Opt.h +++ b/hw/xfree86/common/xf86Opt.h @@ -128,8 +128,6 @@ extern _X_EXPORT Bool xf86GetOptValInteger(const OptionInfoRec * table, int token, int *value); extern _X_EXPORT Bool xf86GetOptValULong(const OptionInfoRec * table, int token, unsigned long *value); -extern _X_EXPORT Bool xf86GetOptValReal(const OptionInfoRec * table, int token, - double *value); extern _X_EXPORT Bool xf86GetOptValFreq(const OptionInfoRec * table, int token, OptFreqUnits expectedUnits, double *value); diff --git a/hw/xfree86/common/xf86Option.c b/hw/xfree86/common/xf86Option.c index 267f63518..32b0aff1d 100644 --- a/hw/xfree86/common/xf86Option.c +++ b/hw/xfree86/common/xf86Option.c @@ -787,20 +787,6 @@ xf86GetOptValULong(const OptionInfoRec * table, int token, unsigned long *value) return FALSE; } -Bool -xf86GetOptValReal(const OptionInfoRec * table, int token, double *value) -{ - OptionInfoPtr p; - - p = xf86TokenToOptinfo(table, token); - if (p && p->found) { - *value = p->value.realnum; - return TRUE; - } - else - return FALSE; -} - Bool xf86GetOptValFreq(const OptionInfoRec * table, int token, OptFreqUnits expectedUnits, double *value)