diff options
author | Sage Weil <sage@inktank.com> | 2013-08-09 12:40:34 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-20 16:54:05 -0700 |
commit | 6abae35a3952e5b513895267711fea63ff3bad09 (patch) | |
tree | f52ac7678174c693bb19c16d60625a133c451658 | |
parent | c9cdd19d1cd88b84e8a867f5ab85cb51fdc6f8e4 (diff) | |
download | ceph-6abae35a3952e5b513895267711fea63ff3bad09.tar.gz |
json_spirit: remove unused typedef
In file included from json_spirit/json_spirit_writer.cpp:7:0:
json_spirit/json_spirit_writer_template.h: In function 'String_type json_spirit::non_printable_to_string(unsigned int)':
json_spirit/json_spirit_writer_template.h:37:50: warning: typedef 'Char_type' locally defined but not used [-Wunused-local-typedefs]
typedef typename String_type::value_type Char_type;
(Also, ha ha, this file uses \r\n.)
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/json_spirit/json_spirit_writer_template.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/json_spirit/json_spirit_writer_template.h b/src/json_spirit/json_spirit_writer_template.h index 61a0e18c2b4..c66037e1f9f 100644 --- a/src/json_spirit/json_spirit_writer_template.h +++ b/src/json_spirit/json_spirit_writer_template.h @@ -34,8 +34,6 @@ namespace json_spirit template< class String_type >
String_type non_printable_to_string( unsigned int c )
{
- typedef typename String_type::value_type Char_type;
-
String_type result( 6, '\\' );
result[1] = 'u';
|