1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Removing warnings and dead code.

This commit is contained in:
David Dykstal 2006-06-14 17:55:07 +00:00
parent 25aa86d80e
commit acfb257546
2 changed files with 8 additions and 6 deletions

View file

@ -2319,7 +2319,7 @@ public class SystemRegistry implements ISystemRegistry, ISystemModelChangeEvents
public void updateHost(Shell shell, IHost conn, String systemType, String connectionName, String hostName, String description, String defaultUserId, int defaultUserIdLocation)
{
lastException = null;
String orgUserId = conn.getDefaultUserId();
// String orgUserId = conn.getDefaultUserId(); DWD temporaily(?) removed.
boolean connectionNameChanged = !connectionName.equalsIgnoreCase(conn.getAliasName());
boolean hostNameChanged = !hostName.equalsIgnoreCase(conn.getHostName());
String orgDefaultUserId = conn.getDefaultUserId();
@ -2487,16 +2487,17 @@ public class SystemRegistry implements ISystemRegistry, ISystemModelChangeEvents
boolean failed = false;
String msg = null;
String oldName = conn.getAliasName();
ISystemProfile oldProfile = conn.getSystemProfile();
// ISystemProfile oldProfile = conn.getSystemProfile(); DWD temporarily(?) removed
ISystemHostPool oldPool = conn.getHostPool();
ISystemHostPool targetPool = getHostPool(targetProfile);
IHost newConn = null;
boolean sameName = (newName.equals(conn.getAliasName()));
// boolean sameName = (newName.equals(conn.getAliasName())); DWD temporarily(?) removed.
SystemBasePlugin.logDebugMessage(this.getClass().getName(), "Start of system connection copy. From: " + oldName + " to: " + newName);
// STEP 0: BRING ALL IMPACTED SUBSYSTEM FACTORIES TO LIFE NOW, BEFORE DOING THE CLONE.
Vector factories = getSubSystemFactories(conn);
// Vector factories = getSubSystemFactories(conn); DWD temporarily(?) removed.
getSubSystemFactories(conn); // DWD touched remove comment after testing
if (errorLoadingFactory)
return null;
@ -2809,6 +2810,7 @@ public class SystemRegistry implements ISystemRegistry, ISystemModelChangeEvents
{
listenerManager.postNotify(event);
}
/**
* Notify a specific listener of a change to a system resource such as a connection.
* <p>
@ -2817,7 +2819,7 @@ public class SystemRegistry implements ISystemRegistry, ISystemModelChangeEvents
*/
public void postEvent(ISystemResourceChangeListener listener, ISystemResourceChangeEvent event)
{
SystemPostableEventNotifier runnable = new SystemPostableEventNotifier(listener, event);
new SystemPostableEventNotifier(listener, event); // create and run the notifier
}
// ----------------------------

View file

@ -83,7 +83,7 @@ public class SystemResourceChangeManager
for (int idx=0; idx<listeners.size(); idx++)
{
ISystemResourceChangeListener listener = (ISystemResourceChangeListener)listeners.elementAt(idx);
SystemPostableEventNotifier runnable = new SystemPostableEventNotifier(listener, event);
new SystemPostableEventNotifier(listener, event); // create and run the notifier
//l.systemResourceChanged(event);
}
}