From 95748a5192727b41327ca0926c603cc5b0ea96f2 Mon Sep 17 00:00:00 2001 From: Colin Dellow Date: Mon, 12 Mar 2018 20:50:30 -0400 Subject: [PATCH] Remove bool from Constraint --- parquet/parquet.cc | 2 -- parquet/parquet_filter.cc | 6 ------ parquet/parquet_filter.h | 3 --- 3 files changed, 11 deletions(-) diff --git a/parquet/parquet.cc b/parquet/parquet.cc index f547d17..3828766 100644 --- a/parquet/parquet.cc +++ b/parquet/parquet.cc @@ -395,7 +395,6 @@ static int parquetFilter( } ValueType type = Null; - bool boolValue = false; int64_t intValue = 0; double doubleValue = 0; std::vector blobValue; @@ -429,7 +428,6 @@ static int parquetFilter( indexInfo->aConstraint[i].iColumn, constraintOperatorFromSqlite(indexInfo->aConstraint[i].op), type, - boolValue, intValue, doubleValue, blobValue); diff --git a/parquet/parquet_filter.cc b/parquet/parquet_filter.cc index b98eaa9..ab772cf 100644 --- a/parquet/parquet_filter.cc +++ b/parquet/parquet_filter.cc @@ -4,7 +4,6 @@ Constraint::Constraint( int column, ConstraintOperator op, ValueType type, - bool boolValue, int64_t intValue, double doubleValue, std::vector blobValue @@ -12,7 +11,6 @@ Constraint::Constraint( this->column = column; this->op = op; this->type = type; - this->boolValue = boolValue; this->intValue = intValue; this->doubleValue = doubleValue; this->blobValue = blobValue; @@ -30,10 +28,6 @@ ValueType Constraint::getType() { return type; } -bool Constraint::getBool() { - return boolValue; -} - int64_t Constraint::getInt() { return intValue; } diff --git a/parquet/parquet_filter.h b/parquet/parquet_filter.h index 3f74cc7..283cfae 100644 --- a/parquet/parquet_filter.h +++ b/parquet/parquet_filter.h @@ -35,7 +35,6 @@ class Constraint { ConstraintOperator op; ValueType type; - bool boolValue; int64_t intValue; double doubleValue; // Doubles as string value @@ -47,7 +46,6 @@ public: int column, ConstraintOperator op, ValueType type, - bool boolValue, int64_t intValue, double doubleValue, std::vector blobValue @@ -56,7 +54,6 @@ public: int getColumn(); ConstraintOperator getOperator(); ValueType getType(); - bool getBool(); int64_t getInt(); double getDouble(); std::vector getBytes();