summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-09 12:40:34 -0700
committerSage Weil <sage@inktank.com>2013-08-22 10:13:55 -0700
commit48e104c9486f7a532455df108dbc225c00796097 (patch)
treea42383774b5198d2c76492c385b53a8c59d88905
parentae42619ca710d737bf4d8c63f39d1102326c903c (diff)
downloadceph-48e104c9486f7a532455df108dbc225c00796097.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.h2
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';