Skip to content

Commit

Permalink
removed temporary traces, making this a release candidate for v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
r-neal-kelly committed May 7, 2021
1 parent 31e4edf commit 496c72e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 34 deletions.
Binary file modified SKSE/Plugins/doticu_skypal.dll
Binary file not shown.
Binary file modified Scripts/skypal.pex
Binary file not shown.
Binary file modified Scripts/skypal_bases.pex
Binary file not shown.
Binary file modified Scripts/skypal_enum_collision_layer_type.pex
Binary file not shown.
Binary file modified Scripts/skypal_references.pex
Binary file not shown.
34 changes: 0 additions & 34 deletions Source/Plugins/doticu_skypal/src/references.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
#include "doticu_skypal/main.h"
#include "doticu_skypal/references.h"

//temp
#include "doticu_skylib/virtual_debug.h"
//

namespace doticu_skypal {

String_t References_t::Class_Name()
Expand Down Expand Up @@ -89,32 +85,6 @@ namespace doticu_skypal {
#undef STATIC
}

//temp
void Test_For_Dupes(Vector_t<Reference_t*>& refs)
{
for (size_t idx = 0, end = refs.size(); idx < end; idx += 1) {
maybe<Reference_t*> reference = refs[idx];
SKYLIB_ASSERT_SOME(reference);

size_t count = 0;
for (size_t idx = 0, end = refs.size(); idx < end; idx += 1) {
if (refs[idx] == reference) {
count += 1;
}
}

if (count > 1) {
std::string note =
std::string("SkyPal: FOUND A DUPLICATE") +
" [" + reference->form_id.As_String() + " - " + reference->Any_Name() + "]";
skylib::Virtual::Debug_t::Trace(note, 2, none<V::Callback_i*>());
} else {
skylib::Virtual::Debug_t::Trace("SkyPal: no duplicates found.", 0, none<V::Callback_i*>());
}
}
}
//

/* Getters */

Vector_t<Reference_t*> References_t::All()
Expand Down Expand Up @@ -397,10 +367,6 @@ namespace doticu_skypal {
Filter::Keywords_t<Reference_t*>(state).OR<Vector_t<some<Keyword_t*>>&>(some_keywords);
}

//temp
Test_For_Dupes(*state.Results());
//

return *state.Results();
}

Expand Down

0 comments on commit 496c72e

Please sign in to comment.