summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-14 12:00:00 +1000
committermd_5 <git@md-5.net>2017-05-14 12:00:00 +1000
commitf2a9b248754b4fd91c0ae69d659a8bbf64ed4929 (patch)
tree620944c8f8dd07ec3836cf90d4807130d6a12d18 /src/main/java
parenta1cc4b769caf690b2f075f833c83e76d6431f9a7 (diff)
downloadbukkit-f2a9b248754b4fd91c0ae69d659a8bbf64ed4929.tar
bukkit-f2a9b248754b4fd91c0ae69d659a8bbf64ed4929.tar.gz
bukkit-f2a9b248754b4fd91c0ae69d659a8bbf64ed4929.tar.lz
bukkit-f2a9b248754b4fd91c0ae69d659a8bbf64ed4929.tar.xz
bukkit-f2a9b248754b4fd91c0ae69d659a8bbf64ed4929.zip
Remove some more long deprecated methods (3+ years)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/OfflinePlayer.java11
-rw-r--r--src/main/java/org/bukkit/configuration/file/FileConfiguration.java22
-rw-r--r--src/main/java/org/bukkit/configuration/file/YamlConfiguration.java32
3 files changed, 0 insertions, 65 deletions
diff --git a/src/main/java/org/bukkit/OfflinePlayer.java b/src/main/java/org/bukkit/OfflinePlayer.java
index e98706a6..3ab2e4c7 100644
--- a/src/main/java/org/bukkit/OfflinePlayer.java
+++ b/src/main/java/org/bukkit/OfflinePlayer.java
@@ -42,17 +42,6 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
public boolean isBanned();
/**
- * Bans or unbans this player
- *
- * @param banned true if banned
- * @deprecated Use {@link org.bukkit.BanList#addBan(String, String, Date,
- * String)} or {@link org.bukkit.BanList#pardon(String)} to enhance
- * functionality
- */
- @Deprecated
- public void setBanned(boolean banned);
-
- /**
* Checks if this player is whitelisted or not
*
* @return true if whitelisted
diff --git a/src/main/java/org/bukkit/configuration/file/FileConfiguration.java b/src/main/java/org/bukkit/configuration/file/FileConfiguration.java
index 5c1a3fde..6767d34a 100644
--- a/src/main/java/org/bukkit/configuration/file/FileConfiguration.java
+++ b/src/main/java/org/bukkit/configuration/file/FileConfiguration.java
@@ -131,28 +131,6 @@ public abstract class FileConfiguration extends MemoryConfiguration {
}
/**
- * Loads this {@link FileConfiguration} from the specified stream.
- * <p>
- * All the values contained within this configuration will be removed,
- * leaving only settings and defaults, and the new values will be loaded
- * from the given stream.
- *
- * @param stream Stream to load from
- * @throws IOException Thrown when the given file cannot be read.
- * @throws InvalidConfigurationException Thrown when the given file is not
- * a valid Configuration.
- * @throws IllegalArgumentException Thrown when stream is null.
- * @deprecated This does not consider encoding
- * @see #load(Reader)
- */
- @Deprecated
- public void load(InputStream stream) throws IOException, InvalidConfigurationException {
- Validate.notNull(stream, "Stream cannot be null");
-
- load(new InputStreamReader(stream, Charsets.UTF_8));
- }
-
- /**
* Loads this {@link FileConfiguration} from the specified reader.
* <p>
* All the values contained within this configuration will be removed,
diff --git a/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java b/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
index c7f28084..6f082731 100644
--- a/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
+++ b/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java
@@ -188,38 +188,6 @@ public class YamlConfiguration extends FileConfiguration {
}
/**
- * Creates a new {@link YamlConfiguration}, loading from the given stream.
- * <p>
- * Any errors loading the Configuration will be logged and then ignored.
- * If the specified input is not a valid config, a blank config will be
- * returned.
- *
- * @param stream Input stream
- * @return Resulting configuration
- * @throws IllegalArgumentException Thrown if stream is null
- * @deprecated does not properly consider encoding
- * @see #load(InputStream)
- * @see #loadConfiguration(Reader)
- */
- @Deprecated
- public static YamlConfiguration loadConfiguration(InputStream stream) {
- Validate.notNull(stream, "Stream cannot be null");
-
- YamlConfiguration config = new YamlConfiguration();
-
- try {
- config.load(stream);
- } catch (IOException ex) {
- Bukkit.getLogger().log(Level.SEVERE, "Cannot load configuration from stream", ex);
- } catch (InvalidConfigurationException ex) {
- Bukkit.getLogger().log(Level.SEVERE, "Cannot load configuration from stream", ex);
- }
-
- return config;
- }
-
-
- /**
* Creates a new {@link YamlConfiguration}, loading from the given reader.
* <p>
* Any errors loading the Configuration will be logged and then ignored.