mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 23:23:47 +02:00
Remove typeName
This commit is contained in:
parent
0f73e68b02
commit
e66cd6d4f8
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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";
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user