Skip to content

Commit 748bcc2

Browse files
authored
Merge pull request #558 from vim-jp/remove-obsolete-file
Remove obsolete file "autoload/vital.vim"
2 parents a2f5709 + a6475f0 commit 748bcc2

File tree

6 files changed

+10
-70
lines changed

6 files changed

+10
-70
lines changed

Changes

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
c680503cd8e48f7b1c21903ed14ffe75cb56c3f4
2+
Modules: *
3+
The obsolete file "autoload/vital.vim" is no longer installed
4+
and "vital#of()" is no longer available.
5+
Please use "vital#{plugin}#new()" instead.
16
73c929cdec441673d6df6ffa3cb450346dd5f0c4
27
Modules: ProcessManager, Deprecated.ProcessManager
38
Rename ProcessManager to Deprecated.ProcessManager which is going to be removed

autoload/vital.vim

-12
This file was deleted.

autoload/vitalizer.vim

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ let s:save_cpo = &cpo
44
set cpo&vim
55

66
let s:LOADER_FILES = [
7-
\ 'autoload/vital.vim',
87
\ 'autoload/vital/vital.vim',
98
\ 'autoload/vital/_vital.vim',
109
\ ]

benchmark/database-sqlite.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" 1. make sure you don't have a.db on the current dir
22
" 2. run this (quickrun is handy)
33
" 3. remove a.db later on
4-
let s:S = vital#of('vital').import('Database.SQLite')
4+
let s:S = vital#vital#new().import('Database.SQLite')
55
call s:S.debug_mode_to(0)
66
let t = reltime()
77
call s:S.query_rawdata(

doc/vital.txt

-5
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ INTERFACE *Vital-interface*
9292
------------------------------------------------------------------------------
9393
FUNCTIONS *Vital-functions*
9494

95-
vital#of({plugin-name}) *vital#of()*
96-
Creates a new Vital object(|Vital-Vital-object|).
97-
This function is deprecated. Please use |vital#{plugin-name}#new()|
98-
instead. vital#{plugin-name}#new() is faster than vital#of.
99-
10095
vital#{plugin-name}#new() *vital#{plugin-name}#new()*
10196
Creates a new Vital object(|Vital-Vital-object|).
10297
If you just want to use |Vital-Vital.import()|, You can use

test/vital.vimspec

+4-51
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Describe vital
7272
End
7373

7474
It remove and add vital modules
75-
let V = vital#of(g:testplugin_name)
75+
let V = vital#{g:testplugin_name}#new()
7676
Assert True(V.exists('Web.JSON'))
7777
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Web.JSON'], '')
7878
let V.unload()
@@ -83,7 +83,7 @@ Describe vital
8383
End
8484

8585
It cannot remove dependencies modules
86-
let V = vital#of(g:testplugin_name)
86+
let V = vital#{g:testplugin_name}#new()
8787
Assert True(V.exists('Cyclic2'))
8888
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Cyclic2'], '')
8989
let V.unload()
@@ -92,7 +92,7 @@ Describe vital
9292

9393
It cannot remove modules which required from other installing modules
9494
" Data.LazyList depends Data.List
95-
let V = vital#of(g:testplugin_name)
95+
let V = vital#{g:testplugin_name}#new()
9696
Assert True(V.exists('Data.List'))
9797
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Data.List'], '')
9898
let V.unload()
@@ -101,7 +101,7 @@ Describe vital
101101

102102
It can remove modules which required from other dependencies modules
103103
" Cyclic2 depends Cyclic1, but Cyclic2 is not specified by :Vitalize
104-
let V = vital#of(g:testplugin_name)
104+
let V = vital#{g:testplugin_name}#new()
105105
Assert True(V.exists('Cyclic1'))
106106
call vitalizer#vitalize(g:testplugin_name, g:testplugin_root, ['-Cyclic1'], '')
107107
let V.unload()
@@ -110,53 +110,6 @@ Describe vital
110110
End
111111
End
112112

113-
Describe vital#of()
114-
It creates a vital object
115-
let V = vital#of(g:testplugin_name)
116-
Assert Equals(type(V), type({}))
117-
Assert HasKey(V, 'import')
118-
End
119-
120-
Context {plugin-name} is vital
121-
Before all
122-
let V = vital#vital#new()
123-
End
124-
125-
It creates a vital object which supports available modules
126-
Assert NotEmpty(V.import('Data.List'))
127-
Assert NotEmpty(V.import('Selfmodule'))
128-
Assert NotEmpty(V.import('Cyclic1'))
129-
Assert Equals(V.load('Data.List'), V)
130-
Assert Equals(V.load('Selfmodule'), V)
131-
Assert Equals(V.load('Cyclic1'), V)
132-
Assert True(V.exists('Data.List'))
133-
Assert True(V.exists('Selfmodule'))
134-
Assert True(V.exists('Cyclic1'))
135-
Assert NotEmpty(V.search('Data.List'))
136-
Assert NotEmpty(V.search('Selfmodule'))
137-
Assert NotEmpty(V.search('Cyclic1'))
138-
End
139-
End
140-
141-
Context wildignore handling
142-
Before all
143-
set wildignore+=*.vim,*.vital
144-
call vital#{g:testplugin_name}#new().unload()
145-
End
146-
147-
After all
148-
set wildignore-=*.vim,*.vital
149-
End
150-
151-
It handles &wildignore
152-
let V = vital#of(g:testplugin_name)
153-
Assert Equals(type(V), type({}))
154-
Assert HasKey(V, 'import')
155-
End
156-
End
157-
158-
End
159-
160113
Describe vital#{plugin-name}#new()
161114
It creates a vital object
162115
let V = vital#{g:testplugin_name}#new()

0 commit comments

Comments
 (0)