Juan Hernandez has uploaded a new change for review.

Change subject: codegen: Remove unused function
......................................................................

codegen: Remove unused function

This patch removes a function of the XML schema generator that is never used.
The change has no impact in the generated code.

Change-Id: I79fa56613fe904e4e1087d5bcb41f122b354f9ab
Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com>
---
M generator/src/main/java/org/ovirt/engine/sdk/generator/xsd/XsdCodegen.java
1 file changed, 0 insertions(+), 17 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/61/35561/1

diff --git 
a/generator/src/main/java/org/ovirt/engine/sdk/generator/xsd/XsdCodegen.java 
b/generator/src/main/java/org/ovirt/engine/sdk/generator/xsd/XsdCodegen.java
index 59bab02..a86bbb8 100644
--- a/generator/src/main/java/org/ovirt/engine/sdk/generator/xsd/XsdCodegen.java
+++ b/generator/src/main/java/org/ovirt/engine/sdk/generator/xsd/XsdCodegen.java
@@ -312,23 +312,6 @@
     }
 
     /**
-     * Finds the index of the line where the given function starts.
-     *
-     * @param name the name of the function
-     * @return the index of the line where the function starts or -1 if no 
such function exists
-     */
-    private int findFunctionFirstLine(String name) {
-        Pattern pattern = Pattern.compile(" *def 
([0-9a-zA-Z_]+)\\([^\\)]*\\):");
-        for (int i = 0; i < source.size(); i++) {
-            Matcher matcher = pattern.matcher(source.get(i));
-            if (matcher.matches() && name.equals(matcher.group(1))) {
-                return i;
-            }
-        }
-        return -1;
-    }
-
-    /**
      * Finds the index of the last line of the block that starts in the given 
line.
      *
      * @param first the index of the first line of the block


-- 
To view, visit http://gerrit.ovirt.org/35561
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I79fa56613fe904e4e1087d5bcb41f122b354f9ab
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to