changeset 3021:5fe8ac99a33d

Kill more warnings by removing unused save/write code. We only read IT files.
author Tony Vroon <chainsaw@gentoo.org>
date Thu, 09 Apr 2009 22:57:02 +0100
parents fdcf79446ddf
children bc94a0cca4f5
files src/modplug/load_it.cxx
diffstat 1 files changed, 0 insertions(+), 68 deletions(-) [+]
line wrap: on
line diff
--- a/src/modplug/load_it.cxx	Thu Apr 09 21:57:39 2009 +0100
+++ b/src/modplug/load_it.cxx	Thu Apr 09 22:57:02 2009 +0100
@@ -922,74 +922,6 @@
 	}
 }
 
-
-UINT CSoundFile::SaveMixPlugins(FILE *f, BOOL bUpdate)
-//----------------------------------------------------
-{
-	DWORD chinfo[64];
-	CHAR s[32];
-	DWORD nPluginSize;
-	UINT nTotalSize = 0;
-	UINT nChInfo = 0;
-
-	for (UINT i=0; i<MAX_MIXPLUGINS; i++)
-	{
-		PSNDMIXPLUGIN p = &m_MixPlugins[i];
-		if ((p->Info.dwPluginId1) || (p->Info.dwPluginId2))
-		{
-			nPluginSize = sizeof(SNDMIXPLUGININFO)+4; // plugininfo+4 (datalen)
-			if ((p->pMixPlugin) && (bUpdate))
-			{
-				p->pMixPlugin->SaveAllParameters();
-			}
-			if (p->pPluginData)
-			{
-				nPluginSize += p->nPluginDataSize;
-			}
-			if (f)
-			{
-				s[0] = 'F';
-				s[1] = 'X';
-				s[2] = '0' + (i/10);
-				s[3] = '0' + (i%10);
-				fwrite(s, 1, 4, f);
-				fwrite(&nPluginSize, 1, 4, f);
-				fwrite(&p->Info, 1, sizeof(SNDMIXPLUGININFO), f);
-				fwrite(&m_MixPlugins[i].nPluginDataSize, 1, 4, f);
-				if (m_MixPlugins[i].pPluginData)
-				{
-					fwrite(m_MixPlugins[i].pPluginData, 1, m_MixPlugins[i].nPluginDataSize, f);
-				}
-			}
-			nTotalSize += nPluginSize + 8;
-		}
-	}
-	for (UINT j=0; j<m_nChannels; j++)
-	{
-		if (j < 64)
-		{
-			if ((chinfo[j] = ChnSettings[j].nMixPlugin) != 0)
-			{
-				nChInfo = j+1;
-			}
-		}
-	}
-	if (nChInfo)
-	{
-		if (f)
-		{
-			nPluginSize = 0x58464843;
-			fwrite(&nPluginSize, 1, 4, f);
-			nPluginSize = nChInfo*4;
-			fwrite(&nPluginSize, 1, 4, f);
-			fwrite(chinfo, 1, nPluginSize, f);
-		}
-		nTotalSize += nChInfo*4 + 8;
-	}
-	return nTotalSize;
-}
-
-
 UINT CSoundFile::LoadMixPlugins(const void *pData, UINT nLen)
 //-----------------------------------------------------------
 {