java-decompiler: post-import cleanup (dead code dropped)
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jetbrains.java.decompiler.struct;
|
||||
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
public interface ISaveClass {
|
||||
|
||||
String getClassEntryName(StructClass cl, String entryname);
|
||||
|
||||
void saveClassToFile(StructClass cl, File file) throws FileNotFoundException, IOException;
|
||||
|
||||
void saveClassToStream(StructClass cl, DataOutputStream out);
|
||||
}
|
||||
@@ -94,15 +94,15 @@ public class StructClass {
|
||||
// constructors
|
||||
// *****************************************************************************
|
||||
|
||||
public StructClass(String filename, boolean own, LazyLoader loader) throws FileNotFoundException, IOException {
|
||||
public StructClass(String filename, boolean own, LazyLoader loader) throws IOException {
|
||||
this(new FileInputStream(filename), own, loader);
|
||||
}
|
||||
|
||||
public StructClass(InputStream inStream, boolean own, LazyLoader loader) throws FileNotFoundException, IOException {
|
||||
public StructClass(InputStream inStream, boolean own, LazyLoader loader) throws IOException {
|
||||
this(new DataInputFullStream(inStream), own, loader);
|
||||
}
|
||||
|
||||
public StructClass(DataInputFullStream inStream, boolean own, LazyLoader loader) throws FileNotFoundException, IOException {
|
||||
public StructClass(DataInputFullStream inStream, boolean own, LazyLoader loader) throws IOException {
|
||||
this.own = own;
|
||||
this.loader = loader;
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ import org.jetbrains.java.decompiler.struct.gen.VarType;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -125,7 +124,7 @@ public class ConstantPool {
|
||||
// public methods
|
||||
// *****************************************************************************
|
||||
|
||||
public void writeToOutputStream(DataOutputStream out) throws FileNotFoundException, IOException {
|
||||
public void writeToOutputStream(DataOutputStream out) throws IOException {
|
||||
|
||||
out.writeShort(pool.size());
|
||||
for (int i = 1; i < pool.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user