From 63b8d35d08a198215ddabb42cca5b0e823232768 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 29 Aug 2014 16:05:51 +0400 Subject: java-decompiler: post-import cleanup (dead code dropped) --- .../java/decompiler/struct/ISaveClass.java | 30 ---------------------- .../java/decompiler/struct/StructClass.java | 6 ++--- .../decompiler/struct/consts/ConstantPool.java | 3 +-- 3 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 src/org/jetbrains/java/decompiler/struct/ISaveClass.java (limited to 'src/org/jetbrains/java/decompiler/struct') diff --git a/src/org/jetbrains/java/decompiler/struct/ISaveClass.java b/src/org/jetbrains/java/decompiler/struct/ISaveClass.java deleted file mode 100644 index c8a5a45..0000000 --- a/src/org/jetbrains/java/decompiler/struct/ISaveClass.java +++ /dev/null @@ -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); -} diff --git a/src/org/jetbrains/java/decompiler/struct/StructClass.java b/src/org/jetbrains/java/decompiler/struct/StructClass.java index 19946a0..78e941d 100644 --- a/src/org/jetbrains/java/decompiler/struct/StructClass.java +++ b/src/org/jetbrains/java/decompiler/struct/StructClass.java @@ -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; diff --git a/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java b/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java index ac3c5a5..a352213 100644 --- a/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java +++ b/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java @@ -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++) { -- cgit v1.2.3