mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Fix warnings.
This commit is contained in:
parent
c012aa7dae
commit
fda5b99f5f
1 changed files with 1 additions and 6 deletions
|
@ -12,15 +12,10 @@
|
|||
|
||||
package org.eclipse.cdt.internal.ui.refactoring.utils;
|
||||
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
|
||||
import org.eclipse.core.filesystem.URIUtil;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.dom.CDOM;
|
||||
|
@ -59,7 +54,7 @@ public class TranslationUnitHelper {
|
|||
IFile[] tmpFile = null;
|
||||
|
||||
tmpFile = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(
|
||||
URIUtil.toURI(filename)); //$NON-NLS-1$
|
||||
URIUtil.toURI(filename));
|
||||
|
||||
return loadTranslationUnit(tmpFile[0], useIndex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue