]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
json_spirit: remove unused typedef
authorSage Weil <sage@inktank.com>
Fri, 9 Aug 2013 19:40:34 +0000 (12:40 -0700)
committerSage Weil <sage@inktank.com>
Thu, 22 Aug 2013 17:14:30 +0000 (10:14 -0700)
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)

src/json_spirit/json_spirit_writer_template.h

index 61a0e18c2b4381713cd4e88c24fe8afe4eaae0c3..c66037e1f9f78fc7aa1425c28ec1b372441923d2 100644 (file)
@@ -34,8 +34,6 @@ namespace json_spirit
     template< class String_type >\r
     String_type non_printable_to_string( unsigned int c )\r
     {\r
-        typedef typename String_type::value_type Char_type;\r
-\r
         String_type result( 6, '\\' );\r
 \r
         result[1] = 'u';\r