|
From: Kouhei S. <nul...@cl...> - 2014-02-08 10:12:01
|
Kouhei Sutou 2014-02-08 19:11:15 +0900 (Sat, 08 Feb 2014) New Revision: b0eafaf65efb75df729d4f80871b1a4f387a495d https://github.com/clear-code/cutter/commit/b0eafaf65efb75df729d4f80871b1a4f387a495d Message: Remove needless strlen() g_markup_parse_context_parse() does it. Modified files: cutter/cut-stream-parser.c Modified: cutter/cut-stream-parser.c (+0 -2) =================================================================== --- cutter/cut-stream-parser.c 2014-02-08 19:10:47 +0900 (4e631a2) +++ cutter/cut-stream-parser.c 2014-02-08 19:11:15 +0900 (dc8b1e4) @@ -812,8 +812,6 @@ cut_stream_parser_parse (CutStreamParser *stream_parser, { CutStreamParserPrivate *priv = CUT_STREAM_PARSER_GET_PRIVATE(stream_parser); - if (text_len < 0) - text_len = strlen(text); return g_markup_parse_context_parse(priv->context, text, text_len, error); } |