summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/struct
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-08-29 16:05:51 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-08-29 21:57:50 +0400
commit63b8d35d08a198215ddabb42cca5b0e823232768 (patch)
tree24a7567182d81c4382e966e86be25ba5badfda09 /src/org/jetbrains/java/decompiler/struct
parent84ea54eb1e2c68091080951a3024cca98f70aca2 (diff)
downloadfernflower-63b8d35d08a198215ddabb42cca5b0e823232768.tar
fernflower-63b8d35d08a198215ddabb42cca5b0e823232768.tar.gz
fernflower-63b8d35d08a198215ddabb42cca5b0e823232768.tar.lz
fernflower-63b8d35d08a198215ddabb42cca5b0e823232768.tar.xz
fernflower-63b8d35d08a198215ddabb42cca5b0e823232768.zip
java-decompiler: post-import cleanup (dead code dropped)
Diffstat (limited to 'src/org/jetbrains/java/decompiler/struct')
-rw-r--r--src/org/jetbrains/java/decompiler/struct/ISaveClass.java30
-rw-r--r--src/org/jetbrains/java/decompiler/struct/StructClass.java6
-rw-r--r--src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java3
3 files changed, 4 insertions, 35 deletions
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++) {