Revert "Work in progress. Do not rely on this commit"
[pithos-web-client] / src / gr / grnet / pithos / web / client / rest / PutRequest.java
index 73ee55d..1b8d734 100644 (file)
@@ -70,7 +70,6 @@
 
 package gr.grnet.pithos.web.client.rest;
 
-import gr.grnet.pithos.web.client.Pithos;
 import gr.grnet.pithos.web.client.Resource;
 
 import java.util.HashMap;
@@ -84,8 +83,6 @@ import com.google.gwt.http.client.Response;
 
 public abstract class PutRequest implements ScheduledCommand {
 
-    private final Pithos app;
-
     private String api;
 
     protected String owner;
@@ -98,8 +95,7 @@ public abstract class PutRequest implements ScheduledCommand {
 
     public abstract void onError(Throwable t);
 
-    public PutRequest(Pithos app, String api, String owner, String path) {
-        this.app = app;
+    public PutRequest(String api, String owner, String path) {
         this.api = api;
         this.owner = owner;
         this.path = path;
@@ -120,7 +116,7 @@ public abstract class PutRequest implements ScheduledCommand {
 
                 @Override
                 public Resource deserialize(Response response) {
-                    return Resource.createFromResponse(app, Resource.class, owner, response, null);
+                    return Resource.createFromResponse(Resource.class, owner, response, null);
                 }
 
                 @Override