Skip to content

Commit b697373

Browse files
committed
chore: remove download debug log lines
1 parent 8e8532e commit b697373

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

scripts/download_song_from_url/download_song_from_url.gml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
function download_song_from_url() {
2-
// download_song_from_url()
32
// Attempts to download a song from a URL
4-
// status:
3+
// Status:
54
// 1 - receiving packets (download in progress)
65
// 0 - success (download complete)
76

@@ -13,8 +12,6 @@ function download_song_from_url() {
1312
song_downloaded_size = async_load[? "sizeDownloaded"];
1413
song_total_size = async_load[? "contentLength"];
1514

16-
//show_debug_message(string(song_downloaded_size) + " " + string(song_total_size) + " " + string(file_get_size(song_download_file)))
17-
1815
if (song_total_size > max_song_download_size) {
1916
message("This file is too large to be opened via a URL! Please try downloading and manually opening the song.", "Error");
2017
song_download_data = -1; // Cancel
@@ -36,20 +33,6 @@ function download_song_from_url() {
3633
}
3734
var writtenFileSize = file_get_size(song_download_file);
3835

39-
show_debug_message(contentLength);
40-
show_debug_message(writtenFileSize);
41-
42-
//show_debug_message("Downloaded: " + string(async_load[? "sizeDownloaded"]));
43-
//show_debug_message("Total: " + string(async_load[? "contentLength"]));
44-
//
45-
//var headers = ds_map_find_value(async_load, "response_headers")
46-
//show_debug_message("Headers: " + string(headers));
47-
//if (headers > 0) {
48-
// show_debug_message(ds_map_keys_to_array(headers));
49-
// show_debug_message(ds_map_values_to_array(headers));
50-
//}
51-
//show_debug_message(string(song_downloaded_size) + " " + string(song_total_size) + " " + string(file_get_size(song_download_file)))
52-
5336
if (contentLength > 0 && writtenFileSize == contentLength) {
5437
song_downloaded_size = song_total_size; // prevent freezing under 100%
5538
load_song(song_download_file);

0 commit comments

Comments
 (0)