Removed some redundant imports

This commit is contained in:
Tom Cammann 2013-01-30 11:29:34 +00:00
parent 1cb5639b78
commit 080b07be13

View File

@ -5,6 +5,9 @@
# Many of the snippets here use a global option called # Many of the snippets here use a global option called
# "g:ultisnips_java_brace_style" which, if set to "nl" will put a newline # "g:ultisnips_java_brace_style" which, if set to "nl" will put a newline
# before '{' braces. # before '{' braces.
# Setting "g:ultisnips_java_junit" will change how the test method snippet
# looks, it is defaulted to junit4, setting this option to 3 will remove the
# @Test annotation from the method
global !p global !p
def junit(snip): def junit(snip):
@ -97,7 +100,6 @@ snippet clc "class with constructor, fields, setter and getters" !b
public class `!p public class `!p
snip.rv = snip.basename or "untitled"` { snip.rv = snip.basename or "untitled"` {
`!p `!p
import re
args = getArgs(t[1]) args = getArgs(t[1])
if len(args) == 0: snip.rv = "" if len(args) == 0: snip.rv = ""
for i in args: for i in args:
@ -128,7 +130,6 @@ snippet clc "class with constucutor, with field names" b
public class `!p public class `!p
snip.rv = snip.basename or "untitled"` { snip.rv = snip.basename or "untitled"` {
`!p `!p
import re
args = getArgs(t[1]) args = getArgs(t[1])
for i in args: for i in args:
snip.rv += "\n\tprivate " + i[0] + " " + i[1]+ ";" snip.rv += "\n\tprivate " + i[0] + " " + i[1]+ ";"
@ -257,7 +258,6 @@ endsnippet
snippet cn "constructor, \w fields + assigments" b snippet cn "constructor, \w fields + assigments" b
`!p `!p
import re
args = getArgs(t[1]) args = getArgs(t[1])
for i in args: for i in args:
snip.rv += "\n\tprivate " + i[0] + " " + i[1]+ ";" snip.rv += "\n\tprivate " + i[0] + " " + i[1]+ ";"