Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pim_dm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
pim_dm
Commits
5557988b
Commit
5557988b
authored
Feb 20, 2018
by
Pedro Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused classes
parent
c5efb3cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
84 deletions
+0
-84
tree/assert_winner_state.py
tree/assert_winner_state.py
+0
-16
tree/graft_prune_state.py
tree/graft_prune_state.py
+0
-23
tree/originator_state.py
tree/originator_state.py
+0
-22
tree/prune_state.py
tree/prune_state.py
+0
-23
No files found.
tree/assert_winner_state.py
deleted
100644 → 0
View file @
c5efb3cd
from
threading
import
Timer
class
AssertWinnerState
(
object
):
def
GraftPruneState
(
self
):
self
.
_assert_state
=
AssertState
.
Winner
self
.
_assert_timer
=
None
self
.
_assert_winner_ip
=
None
self
.
_assert_winner_metric
=
None
def
set_assert_timer
(
self
):
self
.
clear_assert_timer
()
self
.
_assert_timer
=
Timer
()
def
clear_assert_timer
(
self
):
if
self
.
_assert_timer
is
not
None
:
self
.
_assert_timer
.
cancel
()
tree/graft_prune_state.py
deleted
100644 → 0
View file @
c5efb3cd
from
threading
import
Timer
class
GraftPruneState
(
object
):
def
GraftPruneState
(
self
):
self
.
_prune_state
=
SFMRPruneState
.
DIP
self
.
_prune_pending_timer
=
None
# type: Timer
self
.
_prune_timer
=
None
# type: Timer
def
set_prune_pending_timer
(
self
):
self
.
clear_prune_pending_timer
()
self
.
_prune_pending_time
=
Timer
()
def
clear_prune_pending_timer
(
self
):
if
self
.
_prune_pending_time
is
not
None
:
self
.
_prune_pending_time
.
cancel
()
def
set_prune_timer
(
self
):
self
.
clear_prune_timer
()
self
.
_prune_timer
=
Timer
()
def
clear_prune_timer
(
self
):
if
self
.
_prune_timer
is
not
None
:
self
.
_prune_timer
.
cancel
()
tree/originator_state.py
deleted
100644 → 0
View file @
c5efb3cd
from
threading
import
Timer
class
OriginatorState
(
object
):
def
OriginatorState
(
self
):
self
.
_source_active_timer
=
None
# type: Timer
self
.
_state_refresh_timer
=
None
# type: Timer
def
set_source_active_timer
(
self
):
self
.
clear_source_active_timer
()
self
.
_source_active_timer
=
Timer
()
def
clear_source_active_timer
(
self
):
if
self
.
_source_active_timer
is
not
None
:
self
.
_source_active_timer
.
cancel
()
def
set_state_refresh_timer
(
self
):
self
.
clear_state_refresh_timer
()
self
.
_state_refresh_timer
=
Timer
()
def
clear_state_refresh_timer
(
self
):
if
self
.
_state_refresh_timer
is
not
None
:
self
.
_state_refresh_timer
.
cancel
()
tree/prune_state.py
deleted
100644 → 0
View file @
c5efb3cd
from
threading
import
Timer
class
PruneState
(
object
):
def
PruneState
(
self
):
self
.
_prune_state
=
SFMRPruneState
.
DIP
self
.
_prune_pending_timer
=
None
self
.
_prune_timer
=
None
def
set_prune_pending_timer
(
self
):
self
.
clear_prune_pending_timer
()
self
.
_prune_pending_timer
=
Timer
()
def
clear_prune_pending_timer
(
self
):
if
self
.
_prune_pending_timer
is
not
None
:
self
.
_prune_pending_timer
.
cancel
()
def
set_prune_timer
(
self
):
self
.
clear_prune_timer
()
self
.
_prune_timer
=
Timer
()
def
clear_prune_timer
(
self
):
if
self
.
_prune_timer
is
not
None
:
self
.
_prune_timer
.
cancel
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment