From 0eca0c0c30670556817f02678d9bd3bbbbfe2775 Mon Sep 17 00:00:00 2001 From: Alexandr Savca Date: Sun, 14 Jan 2024 23:22:08 +0200 Subject: [PATCH] pkgutil.{cpp,h}: remove unused itos() --- src/pkgutil.cpp | 8 -------- src/pkgutil.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/pkgutil.cpp b/src/pkgutil.cpp index dcb0f7d..bc3bcc9 100644 --- a/src/pkgutil.cpp +++ b/src/pkgutil.cpp @@ -905,14 +905,6 @@ db_lock::~db_lock() } } -string -itos(unsigned int value) -{ - static char buf[20]; - sprintf(buf, "%u", value); - return buf; -} - string mtos(mode_t mode) { diff --git a/src/pkgutil.h b/src/pkgutil.h index ac5728e..526d78f 100644 --- a/src/pkgutil.h +++ b/src/pkgutil.h @@ -102,8 +102,6 @@ class runtime_error_with_errno : public runtime_error /* * Utility functions. */ -string itos(unsigned int value); - string mtos(mode_t mode); string trim_filename(const string& filename);