File tree Expand file tree Collapse file tree 4 files changed +0
-64
lines changed Expand file tree Collapse file tree 4 files changed +0
-64
lines changed Original file line number Diff line number Diff line change @@ -219,20 +219,3 @@ function viml_stridx(a, b) {
219219 return a . indexOf ( b ) ;
220220}
221221
222- function viml_type ( obj ) {
223- if ( typeof obj == 'number' && Math . round ( obj ) == obj ) {
224- return 0 ;
225- } else if ( typeof obj == 'string' ) {
226- return 1 ;
227- } else if ( typeof obj == 'function' ) {
228- return 2 ;
229- } else if ( obj instanceof Array ) {
230- return 3 ;
231- } else if ( obj instanceof Object ) {
232- return 4 ;
233- } else if ( typeof obj == 'number' ) {
234- return 5 ;
235- }
236- throw 'Unknown Type' ;
237- }
238-
Original file line number Diff line number Diff line change @@ -219,23 +219,6 @@ function viml_stridx(a, b) {
219219 return a . indexOf ( b ) ;
220220}
221221
222- function viml_type ( obj ) {
223- if ( typeof obj == 'number' && Math . round ( obj ) == obj ) {
224- return 0 ;
225- } else if ( typeof obj == 'string' ) {
226- return 1 ;
227- } else if ( typeof obj == 'function' ) {
228- return 2 ;
229- } else if ( obj instanceof Array ) {
230- return 3 ;
231- } else if ( obj instanceof Object ) {
232- return 4 ;
233- } else if ( typeof obj == 'number' ) {
234- return 5 ;
235- }
236- throw 'Unknown Type' ;
237- }
238-
239222var NIL = [ ] ;
240223var TRUE = 1 ;
241224var FALSE = 0 ;
Original file line number Diff line number Diff line change @@ -175,18 +175,3 @@ def viml_has_key(obj, key):
175175def viml_stridx (a , b ):
176176 return a .find (b )
177177
178- def viml_type (obj ):
179- if isinstance (obj , int ):
180- return 0
181- elif isinstance (obj , str ):
182- return 1
183- elif inspect .isfunction (obj ):
184- return 2
185- elif isinstance (obj , list ):
186- return 3
187- elif isinstance (obj , dict ):
188- return 4
189- elif isinstance (obj , float ):
190- return 5
191- raise VimLParserException ('Unknown Type' )
192-
Original file line number Diff line number Diff line change @@ -175,21 +175,6 @@ def viml_has_key(obj, key):
175175def viml_stridx (a , b ):
176176 return a .find (b )
177177
178- def viml_type (obj ):
179- if isinstance (obj , int ):
180- return 0
181- elif isinstance (obj , str ):
182- return 1
183- elif inspect .isfunction (obj ):
184- return 2
185- elif isinstance (obj , list ):
186- return 3
187- elif isinstance (obj , dict ):
188- return 4
189- elif isinstance (obj , float ):
190- return 5
191- raise VimLParserException ('Unknown Type' )
192-
193178NIL = []
194179TRUE = 1
195180FALSE = 0
You can’t perform that action at this time.
0 commit comments