summaryrefslogtreecommitdiff
path: root/ZAPD/ZResource.cpp
diff options
context:
space:
mode:
authorNicholas Estelami <NEstelami@users.noreply.github.com>2021-05-06 18:20:07 -0400
committerGitHub <noreply@github.com>2021-05-06 18:20:07 -0400
commit5a721d58d4b28f4797d6fdf29d9926e5e968a939 (patch)
treecb01d50cec516391b25ec8c0e34bb1699a151719 /ZAPD/ZResource.cpp
parentbd4735480a2e6b53585a4f764ae13804e0737a21 (diff)
Refactor: Removed `relPath` since it is no longer used. (#136)
* Refactor: Removed relPath since it is no longer used. * Removed remaining references Co-authored-by: Jack Walker <7463599+Jack-Walker@users.noreply.github.com>
Diffstat (limited to 'ZAPD/ZResource.cpp')
-rw-r--r--ZAPD/ZResource.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/ZAPD/ZResource.cpp b/ZAPD/ZResource.cpp
index 9e16f27..466b3ab 100644
--- a/ZAPD/ZResource.cpp
+++ b/ZAPD/ZResource.cpp
@@ -10,7 +10,6 @@ ZResource::ZResource(ZFile* nParent)
parent = nParent;
name = "";
outName = "";
- relativePath = "";
sourceOutput = "";
rawData = vector<uint8_t>();
rawDataIndex = 0;
@@ -18,11 +17,10 @@ ZResource::ZResource(ZFile* nParent)
}
void ZResource::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<uint8_t>& nRawData,
- const uint32_t nRawDataIndex, const std::string& nRelPath)
+ const uint32_t nRawDataIndex)
{
rawData = nRawData;
rawDataIndex = nRawDataIndex;
- relativePath = nRelPath;
if (reader != nullptr)
ParseXML(reader);
@@ -30,12 +28,10 @@ void ZResource::ExtractFromXML(tinyxml2::XMLElement* reader, const std::vector<u
ParseRawData();
}
-void ZResource::ExtractFromFile(const std::vector<uint8_t>& nRawData, uint32_t nRawDataIndex,
- const std::string& nRelPath)
+void ZResource::ExtractFromFile(const std::vector<uint8_t>& nRawData, uint32_t nRawDataIndex)
{
rawData = nRawData;
rawDataIndex = nRawDataIndex;
- relativePath = nRelPath;
ParseRawData();
}
@@ -124,11 +120,6 @@ std::string ZResource::GetExternalExtension()
return "";
}
-string ZResource::GetRelativePath()
-{
- return relativePath;
-}
-
vector<uint8_t> ZResource::GetRawData()
{
return rawData;