Remove pointless DOM call

bbe62527d2ab9dde785ce38cac9998218c052ae3

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -5Ignore whitespace
public/scripts/world-info.js+2 -5
@@ -1942,7 +1942,6 @@ function clearEntryList() {
19421942 console.time('clearEntryList');
19431943 const $list = $('#world_popup_entries_list');
19441944
1945-
19461945 if (!$list.children().length) {
19471946 console.debug('List already empty, skipping cleanup.');
19481947 console.timeEnd('clearEntryList');
@@ -1977,7 +1976,6 @@ function clearEntryList() {
19771976
19781977 $select.off();
19791978 $.cleanData([$select[0]]);
1980-
19811979 });
19821980
19831981 // Step 3: Clean <div>, <span>, <input>
@@ -1993,13 +1991,12 @@ function clearEntryList() {
19931991 $list.sortable('destroy');
19941992 }
19951993
19961994 letconst totalElementsOfanyKindLeftInListtotalElementsOfAnyKindLeftInList = $list.children().length;
19971995
19981996 // Final cleanup
19991997 if (totalElementsOfanyKindLeftInList !== 0totalElementsOfAnyKindLeftInList) {
20001998 console.time('empty');
20011999 $list.empty();
2002- totalElementsOfanyKindLeftInList = $list.children().length;
20032000 console.timeEnd('empty');
20042001 }
20052002