params: remove persistent params (#21975)

* cleanup constructors

* remove persistent_param

* remove test_persist_params_put_and_get
old-commit-hash: 3b752a307f167ad536eb53cceac76f7034f2faf9
This commit is contained in:
Dean Lee
2021-08-21 07:57:45 +08:00
committed by GitHub
parent 6c19c29b6f
commit 29ec7b83bf
6 changed files with 12 additions and 22 deletions
+2 -2
View File
@@ -30,11 +30,11 @@ class UnknownKeyName(Exception):
cdef class Params:
cdef c_Params* p
def __cinit__(self, d=None, bool persistent_params=False):
def __cinit__(self, d=None):
cdef string path
if d is None:
with nogil:
self.p = new c_Params(persistent_params)
self.p = new c_Params()
else:
path = <string>d.encode()
with nogil: