Skip to content

Commit

Permalink
Cleanup code realated to removes PHPDebugger.* files.
Browse files Browse the repository at this point in the history
close #23
  • Loading branch information
cplerch committed Feb 11, 2017
1 parent bc2c270 commit 41c7a18
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
7 changes: 0 additions & 7 deletions src/main/java/io/soluble/pjb/bridge/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ private Util() {}
* The java/Java.inc code
*/
public static Class JAVA_INC;
/**
* The java/Java.inc code
*/
public static Class PHPDEBUGGER_PHP;
/**
* The java/JavaProxy.php code
*/
Expand Down Expand Up @@ -308,9 +304,6 @@ private static void initGlobals() {
try {
JAVA_INC = Class.forName("io.soluble.pjb.bridge.JavaInc");
} catch (ClassNotFoundException e) {/*ignore*/}
try {
PHPDEBUGGER_PHP = Class.forName("io.soluble.pjb.bridge.PhpDebuggerPHP");
} catch (ClassNotFoundException e) {/*ignore*/}
try {
JAVA_PROXY = Class.forName("io.soluble.pjb.bridge.JavaProxy");
} catch (ClassNotFoundException e) {/*ignore*/}
Expand Down
14 changes: 0 additions & 14 deletions src/main/java/io/soluble/pjb/servlet/ContextLoaderListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -355,20 +355,6 @@ private void createPhpFiles() {
} catch (Exception e) {
e.printStackTrace();
}
/* no longer part of the PHP/Java Bridge
File phpDebuggerFile = new File (javaDir, "PHPDebugger.php");
try {
if (!phpDebuggerFile.exists()) {
Field f = Util.PHPDEBUGGER_PHP.getField("bytes");
byte[] buf = (byte[]) f.get(Util.PHPDEBUGGER_PHP);
OutputStream out = new FileOutputStream (phpDebuggerFile);
out.write(buf);
out.close();
}
} catch (Exception e) {
e.printStackTrace();
}
*/
File javaProxyFile = new File(javaDir, "JavaProxy.php");
try {
if (!javaProxyFile.exists()) {
Expand Down

0 comments on commit 41c7a18

Please sign in to comment.