Remove typeName

This commit is contained in:
fbraem 2015-10-23 20:43:13 +02:00
parent 0f73e68b02
commit e66cd6d4f8
4 changed files with 1 additions and 25 deletions

View File

@ -96,11 +96,6 @@ struct ElementTraits<Array>
static const char marker = '*';
static std::string typeName()
{
return "Array";
}
static std::string toString(const Array& value)
{
std::stringstream result;

View File

@ -71,6 +71,7 @@ public:
/// Disconnects from the Redis server
RedisType::Ptr sendCommand(const Array& command);
/// Sends a Redis command to the server and returns the reply
template<typename T>
void sendCommand(const Array& command, T& result)

View File

@ -57,11 +57,6 @@ struct ElementTraits<Error>
static const char marker = '-';
static std::string typeName()
{
return "Error";
}
static std::string toString(const Error& value)
{
return marker + value.getMessage() + "\r\n";

View File

@ -71,11 +71,6 @@ struct ElementTraits<Poco::Int64>
static const char marker = ':';
static std::string typeName()
{
return "Integer";
}
static std::string toString(const Poco::Int64& value)
{
return marker + NumberFormatter::format(value) + "\r\n";
@ -88,11 +83,6 @@ struct ElementTraits<std::string>
{
enum { TypeId = RedisType::REDIS_SIMPLE_STRING };
static std::string typeName()
{
return "Simple String";
}
static const char marker = '+';
static std::string toString(const std::string& value)
@ -110,11 +100,6 @@ struct ElementTraits<BulkString>
{
enum { TypeId = RedisType::REDIS_BULK_STRING };
static std::string typeName()
{
return "Bulk String";
}
static const char marker = '$';
static std::string toString(const BulkString& value)