diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index 1b6ac2cf5cdb2fcda6c1e96d1e869a60e53efce7..3ca25f341e53d9f36a6138c34e265cb277716e3b 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -100,7 +100,6 @@ import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; -import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; @@ -201,11 +200,6 @@ public abstract class AbstractProject
,R extends A */ private volatile String jdk; - /** - * @deprecated since 2007-01-29. - */ - private transient boolean enableRemoteTrigger; - private volatile BuildAuthorizationToken authToken = null; /** @@ -253,8 +247,6 @@ public abstract class AbstractProject
,R extends A
}
});
- // boolean! Can't tell if xml file contained false..
- if (enableRemoteTrigger) OldDataMonitor.report(this, "1.77");
if(triggers==null) {
// it didn't exist in < 1.28
triggers = new Vector >
return r;
}
-
- /**
- * @deprecated since 2006-11-05.
- * Left for legacy config file compatibility
- */
- @Deprecated
- private transient String slave;
-
- private Object readResolve() {
- if (slave != null) OldDataMonitor.report(this, "1.60");
- return this;
- }
}
diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java
index 86ad032d34ae96c9b685a00b6b2cf14b62db042e..b854428300f51a6a8d5b69bcd1c631718b851ce5 100644
--- a/core/src/main/java/hudson/model/Slave.java
+++ b/core/src/main/java/hudson/model/Slave.java
@@ -1,7 +1,8 @@
/*
* The MIT License
*
- * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Erik Ramfelt, Martin Eigenbrodt, Stephen Connolly, Tom Huybrechts
+ * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
+ * Erik Ramfelt, Martin Eigenbrodt, Stephen Connolly, Tom Huybrechts
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +28,6 @@ import hudson.FilePath;
import hudson.Launcher;
import hudson.Util;
import hudson.Launcher.RemoteLauncher;
-import hudson.diagnosis.OldDataMonitor;
import hudson.model.Descriptor.FormException;
import hudson.remoting.Callable;
import hudson.remoting.VirtualChannel;
@@ -337,12 +337,6 @@ public abstract class Slave extends Node implements Serializable {
*/
private Object readResolve() {
// convert the old format to the new one
- if(command!=null && agentCommand==null) {
- if(command.length()>0) command += ' ';
- agentCommand = command+"java -jar ~/bin/slave.jar";
- }
- if (command!=null || localFS!=null)
- OldDataMonitor.report(Hudson.getInstance(), "1.69");
if (launcher == null) {
launcher = (agentCommand == null || agentCommand.trim().length() == 0)
? new JNLPLauncher()
@@ -383,26 +377,10 @@ public abstract class Slave extends Node implements Serializable {
//
// backward compatibility
//
- /**
- * In Hudson < 1.69 this was used to store the local file path
- * to the remote workspace. No longer in use.
- *
- * @deprecated
- * ... but still in use during the transition.
- */
- private File localFS;
-
- /**
- * In Hudson < 1.69 this was used to store the command
- * to connect to the remote machine, like "ssh myslave".
- *
- * @deprecated
- */
- private transient String command;
-
/**
* Command line to launch the agent, like
* "ssh myslave java -jar /path/to/hudson-remoting.jar"
+ * @deprecated in 1.216
*/
private transient String agentCommand;
diff --git a/core/src/main/java/hudson/tasks/Mailer.java b/core/src/main/java/hudson/tasks/Mailer.java
index 6a8d759b6554ea0edba7e21997cc25e8be5f0d9b..d72614a36e397f0f95ab01fadac689dbe83906e0 100644
--- a/core/src/main/java/hudson/tasks/Mailer.java
+++ b/core/src/main/java/hudson/tasks/Mailer.java
@@ -1,7 +1,7 @@
/*
* The MIT License
*
- * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
+ * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Bruce Chapman, Erik Ramfelt, Jean-Baptiste Quenot, Luca Domenico Milanesio
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -30,7 +30,6 @@ import hudson.Functions;
import hudson.Launcher;
import hudson.RestrictedSince;
import hudson.Util;
-import hudson.diagnosis.OldDataMonitor;
import static hudson.Util.fixEmptyAndTrim;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
@@ -40,14 +39,12 @@ import hudson.model.UserPropertyDescriptor;
import hudson.model.Hudson;
import hudson.util.FormValidation;
import hudson.util.Secret;
-import hudson.util.XStream2;
import org.apache.tools.ant.types.selectors.SelectorUtils;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.export.Exported;
-import com.thoughtworks.xstream.converters.UnmarshallingContext;
import javax.mail.Authenticator;
import javax.mail.Message;
@@ -93,13 +90,6 @@ public class Mailer extends Notifier {
*/
public boolean sendToIndividuals;
- // TODO: left so that XStream won't get angry. figure out how to set the error handling behavior
- // in XStream. Deprecated since 2005-04-23.
- private transient String from;
- private transient String subject;
- private transient boolean failureOnly;
- private transient String charset;
-
@Override
public boolean perform(AbstractBuild,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
if(debug)
@@ -516,12 +506,4 @@ public class Mailer extends Notifier {
* Debug probe point to be activated by the scripting console.
*/
public static boolean debug = false;
-
- public static class ConverterImpl extends XStream2.PassthruConverter