got rid of iitc source setting

* the developer mode makes it pretty much useless
* it's broken since the new fileManager was introduced. nobody complained that it doesn't work -> nobody uses this feature.
This commit is contained in:
Philipp Schaefer
2014-01-22 16:15:54 +01:00
parent cfcc18f3a6
commit 0d852b5043
5 changed files with 0 additions and 77 deletions

View File

@ -27,7 +27,6 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
@ -155,27 +154,6 @@ public class IITC_FileManager {
}
}
final String source = mPrefs.getString("pref_iitc_source", "local");
if (!source.equals("local")) {
// load iitc script from web or asset folder
if (source.contains("http")) {
try {
final URL context = new URL(source);
final URL url = new URL(context, filename);
return url.openStream();
} catch (final IOException e) {
Log.w(e);
}
} else {
final File file = new File(source + File.separatorChar + filename);
try {
return new FileInputStream(file);
} catch (final FileNotFoundException e) {
Log.w(e);
}
}
}
// load plugins from asset folder
return mAssetManager.open(filename);
}