Commit dfac5f19 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

cleanup unused code

parent efc4e0a7
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
"use strict";
var cells = [];
function cell(id){
	this.id = id;
	this.register = function(){
		cells[id] = this;
	}
}

load('src/main/scripts/i2b2-ws/pm.cell.js');

this.httpRequest = function(method,path,query,body){
	var i = -1;
	if( path != null )i = path.indexOf('/',1);
	
	if( i != -1 ){
		var c = cells[path.substr(1,i-1)];
		if( c )return c.request(method,path.substr(i+1),query,body);
		else return "<error>Unknown cell in path "+path.substr(1,i-1)+"</error>";
	}else return "<error>No cell id specified in path</error>";
}
+0 −9
Original line number Diff line number Diff line
"use strict";
var pm = new cell('pm');
pm.request = function(method,path,query,body){
	return "<x>PM, method="+method+", path="+path+", query="+query+"</x>";
}

pm.register();

print('PM cell loaded');
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ public class TestExtractor implements DataSource{

	@Override
	public Connection getConnection() throws SQLException {
		final int defaultFetchSize = 10000;
		//final int defaultFetchSize = 10000;
		final String driver = "org.postgresql.Driver";
		final String uri = "jdbc:postgresql://localhost:15432/i2b2";
		try {