Skip to content

Commit

Permalink
Remove unused type variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dunn committed Aug 25, 2014
1 parent eca704b commit 8d171a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ExtraContainerInfo {
}

// Take an EntryDataList and self. Any item in self that isn't already in the given EntryDataList will be added to that list
ExtraContainerChanges::EntryDataList *SkaarAddRemainingItems(ExtraContainerChanges::EntryDataList *currentEntries, FormType type) {
ExtraContainerChanges::EntryDataList *SkaarAddRemainingItems(ExtraContainerChanges::EntryDataList *currentEntries) {
// Iterate through all the items in self
ExtraDataVec::iterator iteratorPosition = m_vec.begin();
ExtraDataVec::iterator iteratorEnd = m_vec.end();
Expand All @@ -92,7 +92,7 @@ class ExtraContainerInfo {

namespace SkaarSpecialInventoryCrafting {
ExtraContainerInfo SkaarItemInfoForObjectReference(TESObjectREFR* pContainerRef);
ExtraContainerChanges::EntryDataList *SkaarAddRemainingItems(ExtraContainerChanges::EntryDataList *currentItems, TESObjectREFR *pContainerRef, FormType type);
ExtraContainerChanges::EntryDataList *SkaarAddRemainingItems(ExtraContainerChanges::EntryDataList *currentItems, TESObjectREFR *pContainerRef);
bool SkaarEntryDataListContainsEntryData(ExtraContainerChanges::EntryDataList *entryDataList, ExtraContainerChanges::EntryData *entry);
ExtraContainerChanges::EntryDataList *SkaarGetAllItems(TESObjectREFR* container, FormType type);

Expand Down Expand Up @@ -145,7 +145,7 @@ namespace SkaarSpecialInventoryCrafting {
}

// Put into the list those items that were already on the destination but not in the source so they aren't lost
newEntryDataList = SkaarAddRemainingItems(newEntryDataList, pDestContainerRef, type);
newEntryDataList = SkaarAddRemainingItems(newEntryDataList, pDestContainerRef);

_DMESSAGE("About to add ExtraContainerChanges to the player that has %d items in it", newEntryDataList->Count());
ExtraContainerChanges* pXDestContainerChanges = static_cast<ExtraContainerChanges*>(pDestContainerRef->extraData.GetByType(kExtraData_ContainerChanges));
Expand Down Expand Up @@ -186,9 +186,10 @@ namespace SkaarSpecialInventoryCrafting {
}
}

ExtraContainerChanges::EntryDataList *SkaarAddRemainingItems(ExtraContainerChanges::EntryDataList *currentItems, TESObjectREFR *pContainerRef, FormType type) {
// TODO: The SkaarAddRemainingItems functions above in the other namespace ought to be merged into this
ExtraContainerChanges::EntryDataList *SkaarAddRemainingItems(ExtraContainerChanges::EntryDataList *currentItems, TESObjectREFR *pContainerRef) {
ExtraContainerInfo containerInfo = SkaarItemInfoForObjectReference(pContainerRef);
return containerInfo.SkaarAddRemainingItems(currentItems, type);
return containerInfo.SkaarAddRemainingItems(currentItems);
}

// Get the items info object for a given container object reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ForcedIncludeFiles>common/IPrefix.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
</ClCompile>
Expand Down

0 comments on commit 8d171a6

Please sign in to comment.