summaryrefslogtreecommitdiffstats
path: root/src/proguard/classfile/ProgramMember.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/proguard/classfile/ProgramMember.java')
-rw-r--r--src/proguard/classfile/ProgramMember.java32
1 files changed, 2 insertions, 30 deletions
diff --git a/src/proguard/classfile/ProgramMember.java b/src/proguard/classfile/ProgramMember.java
index ea6f46d..240d344 100644
--- a/src/proguard/classfile/ProgramMember.java
+++ b/src/proguard/classfile/ProgramMember.java
@@ -2,7 +2,7 @@
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
- * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu)
+ * Copyright (c) 2002-2013 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
@@ -53,7 +53,7 @@ public abstract class ProgramMember implements Member
/**
- * Creates an initialized ProgramMember.
+ * Creates an initialized ProgramMember.
*/
protected ProgramMember(int u2accessFlags,
int u2nameIndex,
@@ -70,34 +70,6 @@ public abstract class ProgramMember implements Member
/**
- * Returns the line number range of the given class member as "m:n",
- * if it can find it, or <code>null</code> otherwise.
- */
- public String getLineNumberRange(Clazz clazz)
- {
- CodeAttribute codeAttribute =
- (CodeAttribute)getAttribute(clazz, ClassConstants.ATTR_Code);
- if (codeAttribute == null)
- {
- return null;
- }
-
- LineNumberTableAttribute lineNumberTableAttribute =
- (LineNumberTableAttribute)codeAttribute.getAttribute(clazz,
- ClassConstants.ATTR_LineNumberTable);
- if (lineNumberTableAttribute == null)
- {
- return null;
- }
-
- return "" +
- lineNumberTableAttribute.getLineNumber(0) +
- ":" +
- lineNumberTableAttribute.getLineNumber(Integer.MAX_VALUE);
- }
-
-
- /**
* Returns the (first) attribute with the given name.
*/
private Attribute getAttribute(Clazz clazz, String name)