From ca07c2be3bba3291f59d160eac13831c85d16550 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Oct 2020 05:48:46 +0200 Subject: Remove unused code --- src/plugins/Mangadex.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/plugins/Mangadex.cpp') diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index e9487bc..bf493d3 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -220,19 +220,6 @@ namespace QuickMedia { if(result != 0) goto cleanup; - // body_item_image_context.index = 0; - // result = quickmedia_html_find_nodes_xpath(&html_search, "//div[class='pl-1']", - // [](QuickMediaHtmlNode *node, void *userdata) { - // auto *item_data = (BodyItemImageContext*)userdata; - // const char *text = quickmedia_html_node_get_text(node); - // if(text && item_data->index < item_data->body_items->size()) { - // std::string desc = strip(text); - // std::replace_if(desc.begin(), desc.end(), [](int c) { return c == '\n'; }, ' '); - // (*item_data->body_items)[item_data->index]->set_description(std::move(desc)); - // item_data->index++; - // } - // }, &body_item_image_context); - cleanup: quickmedia_html_search_deinit(&html_search); return result == 0 ? SuggestionResult::OK : SuggestionResult::ERR; -- cgit v1.2.3