This repository was archived by the owner on Dec 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 1
- var warned = false
2
-
3
1
function testCommon ( options ) {
4
2
var factory = options . factory
5
3
var test = options . test
6
- var clear = ! ! options . clear
7
4
8
5
if ( typeof factory !== 'function' ) {
9
6
throw new TypeError ( 'factory must be a function' )
@@ -13,15 +10,6 @@ function testCommon (options) {
13
10
throw new TypeError ( 'test must be a function' )
14
11
}
15
12
16
- if ( ! clear && ! warned ) {
17
- warned = true
18
- warn (
19
- 'A next major release of abstract-leveldown will make support of ' +
20
- 'clear() mandatory. Prepare by enabling the tests and implementing a ' +
21
- 'custom _clear() if necessary. See the README for details.'
22
- )
23
- }
24
-
25
13
return {
26
14
test : test ,
27
15
factory : factory ,
@@ -32,15 +20,7 @@ function testCommon (options) {
32
20
errorIfExists : options . errorIfExists !== false ,
33
21
snapshots : options . snapshots !== false ,
34
22
seek : options . seek !== false ,
35
- clear : clear
36
- }
37
- }
38
-
39
- function warn ( msg ) {
40
- if ( typeof process !== 'undefined' && process && process . emitWarning ) {
41
- process . emitWarning ( msg )
42
- } else if ( typeof console !== 'undefined' && console && console . warn ) {
43
- console . warn ( 'Warning: ' + msg )
23
+ clear : ! ! options . clear
44
24
}
45
25
}
46
26
You can’t perform that action at this time.
0 commit comments