diff --git a/riscos/dialog.c b/riscos/dialog.c index 183a89e2b..965901c2a 100644 --- a/riscos/dialog.c +++ b/riscos/dialog.c @@ -65,8 +65,6 @@ static void set_icon_string_i(wimp_w w, wimp_i i, int num); void ro_gui_dialog_init(void) { - char *ver; - dialog_info = ro_gui_dialog_create("info"); /* fill in about box version info */ set_icon_string(dialog_info, 4, netsurf_version); @@ -232,7 +230,7 @@ void ro_gui_dialog_click_config_br(wimp_pointer *pointer) break; case ICON_CONFIG_BR_EXPLAIN: bw = create_browser_window(browser_TITLE | browser_TOOLBAR | - browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 320, 256); + browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 320, 256, NULL); gui_window_show(bw->window); browser_window_open_location(bw, GESTURES_URL); break; @@ -295,7 +293,7 @@ void ro_gui_dialog_click_config_th(wimp_pointer *pointer) break; case ICON_CONFIG_TH_GET: bw = create_browser_window(browser_TITLE | browser_TOOLBAR | - browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 480, 320); + browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 480, 320, NULL); gui_window_show(bw->window); browser_window_open_location(bw, THEMES_URL); break; diff --git a/utils/utils.c b/utils/utils.c index 98038cfe8..004fa3fa7 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -292,36 +292,3 @@ bool is_dir(const char *path) return S_ISDIR(s.st_mode) ? true : false; } - -/** - * Fills in the version string. - * The release version is defined in the Messages file. - */ -char *populate_version(void) { - - const char *version = "%s (%s %s %s)"; /**< version string prototype */ - char *p; - char *day; - char *mon; - char *year; - char *temp = xcalloc(12, sizeof(char)); - char *ret = xcalloc(30, sizeof(char)); - - sprintf(temp, "%s", __DATE__); - p = strchr(temp, ' '); - *p = 0; - mon = strdup(temp); - if (strchr(p+1, ' ') == p+1) - day = p+2; - else - day = p+1; - p = strchr(day, ' '); - *p = 0; - year = p+1; - - sprintf(ret, version, messages_get("Version:CVS Test Build"), day, mon, year); - - xfree(temp); - - return ret; -} diff --git a/utils/utils.h b/utils/utils.h index 4071df4cf..fb6255511 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -27,6 +27,5 @@ char *squash_tolat1(xmlChar *s); char *url_join(const char* new, const char* base); char *get_host_from_url(char* url); bool is_dir(const char *path); -char * populate_version(void); #endif