Skip to content

Commit

Permalink
Remove pointless code
Browse files Browse the repository at this point in the history
Deprecate Apr class ready for removal in 1.3.x

git-svn-id: https://svn.apache.org/repos/asf/tomcat/native/trunk@1781168 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jan 31, 2017
1 parent 4f5b4f9 commit 7d4bd15
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions java/org/apache/tomcat/Apr.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package org.apache.tomcat;

import java.io.InputStream;
import java.util.Properties;

/**
* @deprecated This will be removed in 1.3.x
*/
@Deprecated
public class Apr {
private static String aprInfo = null;

static {

try {
InputStream is = Apr.class.getResourceAsStream
("/org/apache/tomcat/apr.properties");
Properties props = new Properties();
props.load(is);
is.close();
aprInfo = props.getProperty("tcn.info");
}
catch (Throwable t) {
; // Nothing
}
}
}

0 comments on commit 7d4bd15

Please sign in to comment.