Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Remove Files_list manipulations (needed only at compile time)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitrokosta committed Jan 19, 2022
1 parent d7d41c2 commit f740233
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/apps/engine/src/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,12 +719,6 @@ VDATA *COMPILER::ProcessEvent(const char *event_name, MESSAGE message)
return pVD;
}

char *COMPILER::GetName()
{
return SegmentTable[0].Files_list->GetString(0);
// return Files_list.GetString(0);
}

uint32_t COMPILER::GetSegmentIndex(uint32_t segment_id)
{
for (uint32_t n = 0; n < SegmentsNum; n++)
Expand Down Expand Up @@ -7625,7 +7619,6 @@ bool COMPILER::LoadSegmentFromCache(SEGMENT_DESC &segment)
// verify that script files were not modified
if (!LoadFilesFromCache(reader, segment))
{
segment.Files_list->Release();
return false;
}

Expand Down Expand Up @@ -7659,11 +7652,6 @@ bool COMPILER::LoadFilesFromCache(storm::script_cache::Reader &reader, SEGMENT_D
for (size_t i = 0; i < files_count; ++i)
{
auto file_name = std::string(reader.ReadBytes());
if (!segment.Files_list->AddUnicalString(file_name.c_str()))
{
continue;
}

auto file_size = uint32_t();
auto file_data = LoadFile(file_name.c_str(), file_size);
computed_crc = storm::script_cache::ComputeCRC(computed_crc, {file_data, file_size});
Expand Down
1 change: 0 additions & 1 deletion src/apps/engine/src/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ class COMPILER : public VIRTUAL_COMPILER
return bCompleted;
}

char *GetName();
void ExitProgram();
void ClearEvents();

Expand Down

0 comments on commit f740233

Please sign in to comment.