X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=videolink.cpp;h=a5792bbb1fce7bb46753638a13305c3103b47442;hp=3d88f4edb7c57a1fe7e26c8a0ff53f348b00f361;hb=b463276d863f86a4268b5cac63fc6879ad6517bc;hpb=856f9bfe9778a88ff359436c64c3e104fe5f56dc diff --git a/videolink.cpp b/videolink.cpp index 3d88f4e..a5792bb 100644 --- a/videolink.cpp +++ b/videolink.cpp @@ -428,7 +428,6 @@ namespace Gdk::COLORSPACE_RGB, true, 8, // has_alpha, bits_per_sample width, height)), - link_num(0), links_it(doc), link_changing(false) { @@ -437,7 +436,6 @@ namespace Glib::RefPtr norm_pixbuf; Glib::RefPtr diff_pixbuf; - unsigned link_num; link_iterator links_it, links_end; rectangle link_rect; @@ -609,18 +607,6 @@ namespace continue; } - ++state->link_num; - - if (state->link_num >= unsigned(dvd::menu_buttons_max)) - { - if (state->link_num == unsigned(dvd::menu_buttons_max)) - std::cerr << "No more than " << dvd::menu_buttons_max - << " buttons can be placed on a menu\n"; - std::cerr << "Ignoring link to " << uri_and_fragment - << "\n"; - continue; - } - // Check whether this is a link to a video or a page then // add it to the known resources if not already seen; then // add it to the menu entries.