0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

SEE: Simplification.

This commit is contained in:
Witold Filipczyk 2007-04-15 16:59:04 +02:00 committed by Witold Filipczyk
parent b5c3baf910
commit bcb22e301f

View File

@ -243,7 +243,6 @@ js_window_open(struct SEE_interpreter *interp, struct SEE_object *self,
unsigned char *frame = ""; unsigned char *frame = "";
unsigned char *url; unsigned char *url;
struct uri *uri; struct uri *uri;
struct SEE_value url_value;
#if 0 #if 0
static time_t ratelimit_start; static time_t ratelimit_start;
static int ratelimit_count; static int ratelimit_count;
@ -275,15 +274,11 @@ js_window_open(struct SEE_interpreter *interp, struct SEE_object *self,
return; return;
} }
#endif #endif
SEE_ToString(interp, argv[0], &url_value); url = see_value_to_unsigned_char(interp, argv[0]);
url = see_string_to_unsigned_char(url_value.u.string);
if (!url) return; if (!url) return;
trim_chars(url, ' ', 0); trim_chars(url, ' ', 0);
if (argc > 1) { if (argc > 1) {
struct SEE_value target_value; frame = see_value_to_unsigned_char(interp, argv[1]);
SEE_ToString(interp, argv[1], &target_value);
frame = see_string_to_unsigned_char(target_value.u.string);
if (!frame) { if (!frame) {
mem_free(url); mem_free(url);
return; return;