Skip to content

Commit 9c84dc5

Browse files
committed
[snapshot] remove deprecated method. note in changelog instead
1 parent b54636d commit 9c84dc5

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

src/watchdog/utils/dirsnapshot.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -282,51 +282,3 @@ def __str__(self):
282282

283283
def __repr__(self):
284284
return str(self._stat_info)
285-
286-
287-
### deprecated methods ###
288-
289-
@property
290-
def stat_snapshot(self):
291-
"""
292-
.. deprecated:: 0.7.2
293-
Use :func:`stat_info` or :func:`inode`/:func:`mtime`/:func:`isdir`
294-
295-
Returns a dictionary of stat information with file paths being keys.
296-
"""
297-
return self._stat_info
298-
299-
def path_for_inode(self, inode):
300-
"""
301-
.. deprecated:: 0.7.2
302-
Use :func:`path` instead.
303-
304-
Determines the path that an inode represents in a snapshot.
305-
306-
:param inode:
307-
inode number.
308-
"""
309-
return self._inode_to_path[inode]
310-
311-
def has_inode(self, inode):
312-
"""
313-
.. deprecated:: 0.7.2
314-
Use :func:`inode` instead.
315-
316-
Determines if the inode exists.
317-
318-
:param inode:
319-
inode number.
320-
"""
321-
return inode in self._inode_to_path
322-
323-
def stat_info_for_inode(self, inode):
324-
"""
325-
.. deprecated:: 0.7.2
326-
327-
Determines stat information for a given inode.
328-
329-
:param inode:
330-
inode number.
331-
"""
332-
return self.stat_info(self.path_for_inode(inode))

0 commit comments

Comments
 (0)