eclipse plugin: Remove 2 obsolete methods

This commit is contained in:
Timotei Dolean 2011-07-05 08:52:41 +00:00
parent 7c1f4c46b9
commit 6b28ea2377

View file

@ -414,34 +414,6 @@ public class ResourceUtils
}
}
/**
* @deprecated Use the {@link WMLSaxHandler#IsCampaign}
* @param fileName
* @return
*/
@Deprecated
public static boolean isCampaignFile(String fileName)
{
if (!fileName.endsWith(".cfg")) //$NON-NLS-1$
return false;
String fileContentString = ResourceUtils.getFileContents(new File(fileName));
return (fileContentString.contains("[campaign]") && fileContentString.contains("[/campaign]")); //$NON-NLS-1$ //$NON-NLS-2$
}
/**
* @deprecated Use the {@link WMLSaxHandler#IsScenario}
* @param fileName
* @return
*/
@Deprecated
public static boolean isScenarioFile(String fileName)
{
if (!fileName.endsWith(".cfg")) //$NON-NLS-1$
return false;
String fileContentString = ResourceUtils.getFileContents(new File(fileName));
return (fileContentString.contains("[scenario]") && fileContentString.contains("[/scenario]")); //$NON-NLS-1$ //$NON-NLS-2$
}
/**
* Deletes all markers of type specified from the resource
* @param resource