From 9cb2c2eb3627b52c3413b39b45e7fb7e0e9a074c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 9 Aug 2013 12:40:34 -0700 Subject: [PATCH] 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 (cherry picked from commit 6abae35a3952e5b513895267711fea63ff3bad09) --- src/json_spirit/json_spirit_writer_template.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/json_spirit/json_spirit_writer_template.h b/src/json_spirit/json_spirit_writer_template.h index 61a0e18c2b438..c66037e1f9f78 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'; -- 2.39.5