Bug 319399 - Strip out dead code associated with Debug.debug
diff --git a/bundles/org.eclipse.equinox.transforms.hook/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.transforms.hook/META-INF/MANIFEST.MF
index f236b7d..d918465 100644
--- a/bundles/org.eclipse.equinox.transforms.hook/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.transforms.hook/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@
Bundle-Name: %bundleName
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.eclipse.equinox.transforms.hook
-Bundle-Version: 1.0.200.qualifier
+Bundle-Version: 1.0.300.qualifier
Fragment-Host: org.eclipse.osgi;bundle-version="[3.2.0,4.0.0)"
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Bundle-Localization: transformsHook
diff --git a/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/TransformedBundleFile.java b/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/TransformedBundleFile.java
index 7f543e1..28e57f6 100644
--- a/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/TransformedBundleFile.java
+++ b/bundles/org.eclipse.equinox.transforms.hook/src/org/eclipse/equinox/internal/transforms/TransformedBundleFile.java
@@ -156,7 +156,7 @@
if (nested != null) {
if (nested.exists()) {
/* the entry is already cached */
- if (Debug.DEBUG && Debug.DEBUG_GENERAL)
+ if (Debug.DEBUG_GENERAL)
Debug.println("File already present: " + nested.getPath()); //$NON-NLS-1$
if (nested.isDirectory())
// must ensure the complete directory is extracted (bug
@@ -165,7 +165,7 @@
} else {
if (originalFile.isDirectory()) {
if (!nested.mkdirs()) {
- if (Debug.DEBUG && Debug.DEBUG_GENERAL)
+ if (Debug.DEBUG_GENERAL)
Debug.println("Unable to create directory: " + nested.getPath()); //$NON-NLS-1$
throw new IOException(NLS.bind(AdaptorMsg.ADAPTOR_DIRECTORY_CREATE_EXCEPTION, nested.getAbsolutePath()));
}
@@ -176,12 +176,12 @@
return null;
// if (in instanceof )
/* the entry has not been cached */
- if (Debug.DEBUG && Debug.DEBUG_GENERAL)
+ if (Debug.DEBUG_GENERAL)
Debug.println("Creating file: " + nested.getPath()); //$NON-NLS-1$
/* create the necessary directories */
File dir = new File(nested.getParent());
if (!dir.exists() && !dir.mkdirs()) {
- if (Debug.DEBUG && Debug.DEBUG_GENERAL)
+ if (Debug.DEBUG_GENERAL)
Debug.println("Unable to create directory: " + dir.getPath()); //$NON-NLS-1$
throw new IOException(NLS.bind(AdaptorMsg.ADAPTOR_DIRECTORY_CREATE_EXCEPTION, dir.getAbsolutePath()));
}
@@ -195,7 +195,7 @@
return nested;
}
} catch (IOException e) {
- if (Debug.DEBUG && Debug.DEBUG_GENERAL)
+ if (Debug.DEBUG_GENERAL)
Debug.printStackTrace(e);
}
return null;