Juan Hernandez has uploaded a new change for review.

Change subject: restapi: Remove unused methods from LinkHelper
......................................................................

restapi: Remove unused methods from LinkHelper

This patch removes some methods of the LinkHelper class that aren't
currently used.

Change-Id: I588e8c00bf7ea6d690d9c9816601154423110226
Signed-off-by: Juan Hernandez <[email protected]>
---
M 
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
1 file changed, 0 insertions(+), 36 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/31/40531/1

diff --git 
a/backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
 
b/backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
index 0cb7f33..dd453ff 100644
--- 
a/backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
+++ 
b/backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/LinkHelper.java
@@ -947,18 +947,6 @@
     }
 
     /**
-     * Appends searchable links to resource's Href
-     *
-     * @param url to append to
-     * @param resource to add links to
-     * @param rel link ro add
-     * @param flags used to specify different link options
-     */
-    public static void addLink(BaseResource resource, String rel, LinkFlags 
flags) {
-        addLink(resource.getHref(), resource, rel, flags);
-    }
-
-    /**
      * Adds searchable links to resource
      *
      * @param url to append to
@@ -991,16 +979,6 @@
     }
 
     /**
-     * Appends searchable links to resource's Href
-     *
-     * @param resource to add links to
-     * @param rel link ro add
-     */
-    public static void addLink(BaseResource resource, String rel) {
-        addLink(resource.getHref(), resource, rel);
-    }
-
-    /**
      * Adds searchable links to resource
      *
      * @param url to append to and combine search dialect
@@ -1012,20 +990,6 @@
         Link link = new Link();
         link.setRel(rel + SEARCH_RELATION);
         link.setHref(combine(combine(url, rel), params) + SEARCH_TEMPLATE);
-        resource.getLinks().add(link);
-    }
-
-    /**
-     * Adds searchable links to resource
-     *
-     * @param url to append to and combine search dialect
-     * @param resource to add links to
-     * @param rel link ro add
-     */
-    public static void addLink(String url, BaseResource resource, String rel) {
-        Link link = new Link();
-        link.setRel(rel + SEARCH_RELATION);
-        link.setHref(combine(url, rel) + SEARCH_TEMPLATE);
         resource.getLinks().add(link);
     }
 


-- 
To view, visit https://gerrit.ovirt.org/40531
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I588e8c00bf7ea6d690d9c9816601154423110226
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to