Kill some unused code

This commit is contained in:
Dr. Chat 2015-05-04 20:33:04 -05:00
parent e90475a31b
commit 1571c51a56
1 changed files with 0 additions and 18 deletions

View File

@ -49,8 +49,6 @@ typedef struct xe_xex2 {
size_t count; size_t count;
xe_xex2_import_info_t *infos; xe_xex2_import_info_t *infos;
} library_imports[16]; } library_imports[16];
xe_xex2_export_table *export_table;
} xe_xex2_t; } xe_xex2_t;
int xe_xex2_read_header(const uint8_t *addr, const size_t length, int xe_xex2_read_header(const uint8_t *addr, const size_t length,
@ -876,22 +874,6 @@ int xe_xex2_load_pe(xe_xex2_ref xex) {
xex->sections->push_back(section); xex->sections->push_back(section);
} }
/*
if (header->export_table_offset) {
// This table is located inside of the PE (for some reason)
xe_xex2_export_table *table = (xe_xex2_export_table *)xex->memory->TranslateVirtual(xex->header.loader_info.export_table);
xex->export_table = table;
// cmp magic...
table->base = xe::load_and_swap<uint32_t>(&table->base);
table->imagebaseaddr = xe::load_and_swap<uint32_t>(&table->imagebaseaddr);
table->count = xe::load_and_swap<uint32_t>(&table->count);
for (int i = 0; i < table->count; i++) {
table->ordOffset[i] = xe::load_and_swap<uint32_t>(&table->ordOffset[i]);
}
}
*/
// DumpTLSDirectory(pImageBase, pNTHeader, (PIMAGE_TLS_DIRECTORY32)0); // DumpTLSDirectory(pImageBase, pNTHeader, (PIMAGE_TLS_DIRECTORY32)0);
// DumpExportsSection(pImageBase, pNTHeader); // DumpExportsSection(pImageBase, pNTHeader);
return 0; return 0;