From 31c1db43d2d425b06e16c2f7707326ce8ead64b8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 10 Dec 2020 18:48:07 +0000 Subject: Remove unused shadowing length variable --- libmysqlpp/my-column.cpp | 2 +- libmysqlpp/my-column.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'libmysqlpp') diff --git a/libmysqlpp/my-column.cpp b/libmysqlpp/my-column.cpp index 4d2c762..c205439 100644 --- a/libmysqlpp/my-column.cpp +++ b/libmysqlpp/my-column.cpp @@ -13,7 +13,7 @@ MySQL::ColumnBase::isNull() const } MySQL::StringColumn::StringColumn(const char * name, unsigned int field, MYSQL_BIND * b, unsigned int len) : - ColumnBase(name, field), value(len), length(0) + ColumnBase(name, field), value(len) { b->is_null = &is_null; b->buffer_type = MYSQL_TYPE_STRING; diff --git a/libmysqlpp/my-column.h b/libmysqlpp/my-column.h index 51c4503..2726830 100644 --- a/libmysqlpp/my-column.h +++ b/libmysqlpp/my-column.h @@ -25,7 +25,6 @@ namespace MySQL { void apply(DB::HandleField &) const override; std::vector value; - long unsigned int length; }; class NullColumn : public ColumnBase { -- cgit v1.2.3