From 9a05f56e1bf36abab41d12f92f2c75266c44bd4a Mon Sep 17 00:00:00 2001 From: bigbear Date: Thu, 8 Feb 2024 19:52:52 +0100 Subject: Clean - HARDINFO2 BASE --- hardinfo/hinote_util.c | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 hardinfo/hinote_util.c (limited to 'hardinfo/hinote_util.c') diff --git a/hardinfo/hinote_util.c b/hardinfo/hinote_util.c deleted file mode 100644 index efc85be0..00000000 --- a/hardinfo/hinote_util.c +++ /dev/null @@ -1,27 +0,0 @@ - -#include "hardinfo.h" - -/* requires COMPILE_FLAGS "-std=c99" */ - -static const char bullet_yes[] = "\u2713"; -static const char bullet_no[] = "\u2022 "; -static const char bullet_yes_text[] = "[X]"; -static const char bullet_no_text[] = "[ ]"; - -gboolean note_cond_bullet(gboolean cond, gchar *note_buff, const gchar *desc_str) { - int l = strlen(note_buff); - if (params.markup_ok) - snprintf(note_buff + l, note_max_len - l - 1, "%s %s\n", - cond ? bullet_yes : bullet_no, desc_str); - else - snprintf(note_buff + l, note_max_len - l - 1, "%s %s\n", - cond ? bullet_yes_text : bullet_no_text, desc_str); - return cond; -} - -gboolean note_require_tool(const gchar *tool, gchar *note_buff, const gchar *desc_str) { - gchar *tl = find_program((gchar*)tool); - gboolean found = note_cond_bullet(!!tl, note_buff, desc_str); - g_free(tl); - return found; -} -- cgit v1.2.3