small fixes, unused code removed

This commit is contained in:
honfika@gmail.com
2014-11-16 21:03:17 +01:00
parent 6d3974db53
commit ef34bb535b
5 changed files with 6 additions and 96 deletions

View File

@@ -648,7 +648,7 @@ public final class SWF implements SWFContainerItem, Timelined {
}
private void findABCTags() {
List<ContainerItem> objs = new ArrayList<>();
List<ContainerItem> objs = new ArrayList<>(tags.size());
objs.addAll(tags);
ArrayList<ABCContainerTag> newAbcList = new ArrayList<>();

View File

@@ -2209,9 +2209,9 @@ public class SWFInputStream implements AutoCloseable {
* @throws IOException
*/
public List<FILTER> readFILTERLIST(String name) throws IOException {
List<FILTER> ret = new ArrayList<>();
newDumpLevel(name, "FILTERLIST");
int numberOfFilters = readUI8("numberOfFilters");
List<FILTER> ret = new ArrayList<>(numberOfFilters);
for (int i = 0; i < numberOfFilters; i++) {
ret.add(readFILTER("filter"));
}

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash;
import com.jpexs.helpers.Helper;
@@ -61,7 +62,7 @@ public class SWFSearch {
}
public void process() {
public void process() {
Map<Long, InputStream> ret;
ret = s.search(new ProgressListener() {
@Override
public void progress(int p) {