diff options
author | Sage Weil <sage@inktank.com> | 2013-08-09 12:40:34 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-22 10:14:30 -0700 |
commit | 9cb2c2eb3627b52c3413b39b45e7fb7e0e9a074c (patch) | |
tree | 5ca1bc9d6763954655ff3a573b80dcb0807aac38 | |
parent | d774559f118d26cd15ecf1a49468ce1a3d260efc (diff) | |
download | ceph-9cb2c2eb3627b52c3413b39b45e7fb7e0e9a074c.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>
(cherry picked from commit 6abae35a3952e5b513895267711fea63ff3bad09)
-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';
|