From bd4c32460b4bb5cdf09fbb60f68777ffd9df87ad Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Fri, 22 Jul 2016 14:53:31 -0700 Subject: [PATCH] SQLite writer: Remove unused string formatting function. --- src/logging/writers/sqlite/SQLite.cc | 15 --------------- src/logging/writers/sqlite/SQLite.h | 1 - 2 files changed, 16 deletions(-) diff --git a/src/logging/writers/sqlite/SQLite.cc b/src/logging/writers/sqlite/SQLite.cc index ce04839337..8de137607b 100644 --- a/src/logging/writers/sqlite/SQLite.cc +++ b/src/logging/writers/sqlite/SQLite.cc @@ -232,21 +232,6 @@ bool SQLite::DoInit(const WriterInfo& info, int arg_num_fields, return true; } -// Format String -char* SQLite::FS(const char* format, ...) - { - char* buf; - - va_list al; - va_start(al, format); - int n = vasprintf(&buf, format, al); - va_end(al); - - assert(n >= 0); - - return buf; - } - int SQLite::AddParams(Value* val, int pos) { if ( ! val->present ) diff --git a/src/logging/writers/sqlite/SQLite.h b/src/logging/writers/sqlite/SQLite.h index cce87da2ef..1db53614a2 100644 --- a/src/logging/writers/sqlite/SQLite.h +++ b/src/logging/writers/sqlite/SQLite.h @@ -38,7 +38,6 @@ private: int AddParams(threading::Value* val, int pos); string GetTableType(int, int); - char* FS(const char* format, ...); const threading::Field* const * fields; // raw mapping unsigned int num_fields;